public interface DropController
DragController
.Modifier and Type | Method and Description |
---|---|
com.google.gwt.user.client.ui.Widget |
getDropTarget()
Retrieve our drop target widget.
|
void |
onDrop(DragContext context)
Called when the draggable widget or its proxy is dropped on our drop target.
|
void |
onEnter(DragContext context)
Called when the draggable widget or its proxy engages our drop target.
|
void |
onLeave(DragContext context)
Called when the reference widget stops engaging our drop target by leaving the area of the page
occupied by our drop target, or after
onDrop(DragContext) to allow for any cleanup. |
void |
onMove(DragContext context)
Called with each mouse movement while the reference widget is engaging our drop target.
|
void |
onPreviewDrop(DragContext context)
Called just prior to
onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException . |
com.google.gwt.user.client.ui.Widget getDropTarget()
void onDrop(DragContext context)
context
- the current drag contextonPreviewDrop(DragContext)
void onEnter(DragContext context)
context
- the current drag contextonLeave(DragContext)
void onLeave(DragContext context)
onDrop(DragContext)
to allow for any cleanup.context
- the current drag contextonEnter(DragContext)
void onMove(DragContext context)
onEnter(DragContext)
is called before this method is called.context
- the current drag contextonEnter(DragContext)
,
onLeave(DragContext)
void onPreviewDrop(DragContext context) throws VetoDragException
onDrop(DragContext)
to allow the drop operation to be cancelled
by throwing a VetoDragException
.context
- the current drag contextVetoDragException
- if the proposed operation is unacceptable