Class DwtDropTarget
Application developers instantiate DwtDropTarget and register it with the control which is to be a drop target (via DwtControl.setDropTarget). The application should then register a listener with the DwtDropTarget. This way when drop events occur the application will be notified and may act on them accordingly Defined in: DwtDropTarget.js.
Class Detail
DwtDropTarget(transferType)
Author: Ross Dargahi.
Method Detail
addDropListener(dropTargetListener)
Registers a listener for DwtDragEvent events.
addTransferType(type)
Declares a type of object as valid for being dropped onto this target. The type is provided
as a string, since the corresponding class may not yet be defined. The type is eval'ed before
it is used for any validation, since the check is done with
instanceof .
{array}
getTransferTypes()
Gets the transfer types.
{boolean}
hasMultipleTargets()
Checks if the UI component backing this drop target has multiple sub-components.
{boolean}
isValidTarget(items)
Check to see if the types in
items can be dropped on this drop target
markAsMultiple()
Calling this method indicates that the UI component backing this drop target has multiple
sub-components
removeDropListener(dropTargetListener)
Removes a registered event listener.
{string}
toString()
Returns a string representation of this object.
|
||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:26 GMT-0400 (EDT)
|