public class MatryoshkaSetWidgetDropController extends SimpleDropController
Constructor and Description |
---|
MatryoshkaSetWidgetDropController(com.google.gwt.user.client.ui.SimplePanel dropTarget) |
Modifier and Type | Method and Description |
---|---|
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
DropController.onDrop(DragContext) to allow for any cleanup. |
void |
onPreviewDrop(DragContext context)
Called just prior to
DropController.onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException . |
getDropTarget, onMove
public MatryoshkaSetWidgetDropController(com.google.gwt.user.client.ui.SimplePanel dropTarget)
public void onDrop(DragContext context)
DropController
onDrop
in interface DropController
onDrop
in class AbstractDropController
context
- the current drag contextDropController.onPreviewDrop(DragContext)
public void onEnter(DragContext context)
DropController
onEnter
in interface DropController
onEnter
in class AbstractDropController
context
- the current drag contextDropController.onLeave(DragContext)
public void onLeave(DragContext context)
DropController
DropController.onDrop(DragContext)
to allow for any cleanup.onLeave
in interface DropController
onLeave
in class AbstractDropController
context
- the current drag contextDropController.onEnter(DragContext)
public void onPreviewDrop(DragContext context) throws VetoDragException
DropController
DropController.onDrop(DragContext)
to allow the drop operation to be cancelled
by throwing a VetoDragException
.onPreviewDrop
in interface DropController
onPreviewDrop
in class AbstractDropController
context
- the current drag contextVetoDragException
- if the proposed operation is unacceptable