Helper class that plays the role of the target during a drag and drop operation that is initiated using startDrag in a DragSource.
Inheritance Hierarchy
Remarks
During the drag operation, the current drop target can be obtained through the QueryContinueDragEventArgs which is fired with the query-continue-drag event, when the drop target changes.
See Also
Developer's Guide
Members
No filters for this type
Constructors
Initializes a new instance of the DropTarget class.
Initializes a new instance of the DropTarget class.
Use the In order to make this instance available to the drag and drop mechanisms, the setDropTarget method should be used.
See Also
Properties
final
Property Value
true if dropping to this target is currently allowed; otherwise, false.If this drop target holds a CanvasComponent, getComponent can be used to retrieve the actual CanvasComponent.
readonlyfinal
Events
Occurs when a drag enters the drop target.
Occurs when a drag enters the drop target.
The handler may adjust the dropEffect and call handled.
Properties of
DragEventArgs- dropEffect: DragDropEffectswritable
- Gets or sets the effects that the current handler can realize.
- effectAllowed: DragDropEffects
- Gets the allowed effects for the current drag operation as specified by the DragSource.
- handled: booleanwritable
- Gets or sets a value indicating whether this DragEventArgs has been handled.
- item: DragDropItem
- Gets the data that is associated with the drag.
- keyStates: DragDropKeyStates
- Gets the key states relevant during the drag and drop operation.
Occurs when a drag leaves the drop target.
Occurs when a drag leaves the drop target.
The handler may adjust the dropEffect and call handled.
Properties of
DragEventArgs- dropEffect: DragDropEffectswritable
- Gets or sets the effects that the current handler can realize.
- effectAllowed: DragDropEffects
- Gets the allowed effects for the current drag operation as specified by the DragSource.
- handled: booleanwritable
- Gets or sets a value indicating whether this DragEventArgs has been handled.
- item: DragDropItem
- Gets the data that is associated with the drag.
- keyStates: DragDropKeyStates
- Gets the key states relevant during the drag and drop operation.
Occurs when a drag is being performed over the drop target.
Occurs when a drag is being performed over the drop target.
The handler may adjust the dropEffect and call handled.
Properties of
DragEventArgs- dropEffect: DragDropEffectswritable
- Gets or sets the effects that the current handler can realize.
- effectAllowed: DragDropEffects
- Gets the allowed effects for the current drag operation as specified by the DragSource.
- handled: booleanwritable
- Gets or sets a value indicating whether this DragEventArgs has been handled.
- item: DragDropItem
- Gets the data that is associated with the drag.
- keyStates: DragDropKeyStates
- Gets the key states relevant during the drag and drop operation.
Occurs when the drop operation is performed on the drop target.
Occurs when the drop operation is performed on the drop target.
The handler may adjust the dropEffect and call handled.
Properties of
DragEventArgs- dropEffect: DragDropEffectswritable
- Gets or sets the effects that the current handler can realize.
- effectAllowed: DragDropEffects
- Gets the allowed effects for the current drag operation as specified by the DragSource.
- handled: booleanwritable
- Gets or sets a value indicating whether this DragEventArgs has been handled.
- item: DragDropItem
- Gets the data that is associated with the drag.
- keyStates: DragDropKeyStates
- Gets the key states relevant during the drag and drop operation.
Static Methods
Gets the DropTarget instance associated with the given element.
Gets the DropTarget instance associated with the given element.
static
Parameters
- element: Element
- The element to get the drop target instance of.
Return Value
- DropTarget
- The associated instance or
null.
See Also
Sets the drop target for the given element.
Sets the drop target for the given element.
static
Parameters
- element: Element
- The element to register the drop target instance with.
- dropTarget: DropTarget
- The instance to attach to the element or
nullto remove the association from the element.