public interface DragAndDropListener
Event lifecycle (in order):
Note: in all cases above, the SOURCE and the TARGET may be the same container and listeners handle this as appropriate.
Modifier and Type | Method and Description |
---|---|
Draggable |
onDragDetected(DragEvent event)
Called when the drag gesture is first detected by the
drag container.
|
void |
onDragDone(DragEvent event)
Called on listeners on the SOUCE container when the drag operation
is completed, regardless of whether the drop was successful.
|
void |
onDragEnter(DragEvent event)
Called when the draggable has entered the drag-and-drop container
to which this listener is listening.
|
void |
onDragExit(DragEvent event)
Called when the draggable has left the drag-and-drop container
to which this listener is listening.
|
void |
onDragOver(DragEvent event)
Called for all draggable motion over the drag-and-drop container
to which this listener is listening.
|
void |
onDrop(DragEvent event)
Called on listeners on the TARGET container when a drag operation
is completed and the drag status at the time was DragStatus.ValidTarget.
|
Draggable onDragDetected(DragEvent event)
void onDragEnter(DragEvent event)
void onDragExit(DragEvent event)
void onDragOver(DragEvent event)
void onDrop(DragEvent event)
void onDragDone(DragEvent event)