|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DropController
Create a DropController for each drop target on which draggable widgets can be dropped. Do not
forget to register each DropController with a
DragController
.
Method Summary | |
---|---|
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 . |
Method Detail |
---|
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 context
VetoDragException
- if the proposed operation is unacceptable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |