DragSourceListener
defines the event interface for originators of Drag and Drop operations to track the state of the user's gesture, and to provide appropriate "drag over" feedback to the user throughout the Drag and Drop operation. The drop site is associated with the previous dragEnter()
invocation if the latest invocation of dragEnter()
on this listener:
dragExit()
invocation on this listener. DragSourceListener
class provides event notification to the application for DragSource events. When the user drops data on a DropTarget
, the application which defines the DragSource
must provide the dropped data by implementing dragSetData
. In the dragSetData, the application must support all the data types that were specified in the DragSource#setTransfer method.
After the drop has completed successfully or has been aborted, the application which defines the DragSource
is required to take the appropriate cleanup action. In the case of a successful move operation, the application must remove the data that was transferred.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|