|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.allen_sauer.gwt.dnd.client.drop.AbstractDropController
public abstract class AbstractDropController
Base class for typical drop controllers. Contains some basic functionality like adjust widget styles.
| Constructor Summary | |
|---|---|
AbstractDropController(com.google.gwt.user.client.ui.Widget dropTarget)
|
|
| 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 DropController.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 DropController.onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDropController(com.google.gwt.user.client.ui.Widget dropTarget)
| Method Detail |
|---|
public com.google.gwt.user.client.ui.Widget getDropTarget()
DropController
getDropTarget in interface DropControllerpublic void onDrop(DragContext context)
DropController
onDrop in interface DropControllercontext - the current drag contextDropController.onPreviewDrop(DragContext)public void onEnter(DragContext context)
DropController
onEnter in interface DropControllercontext - the current drag contextDropController.onLeave(DragContext)public void onLeave(DragContext context)
DropControllerDropController.onDrop(DragContext) to allow for any cleanup.
onLeave in interface DropControllercontext - the current drag contextDropController.onEnter(DragContext)public void onMove(DragContext context)
DropControllerDropController.onEnter(DragContext) is called before this method is called.
onMove in interface DropControllercontext - the current drag contextDropController.onEnter(DragContext),
DropController.onLeave(DragContext)
public void onPreviewDrop(DragContext context)
throws VetoDragException
DropControllerDropController.onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException.
onPreviewDrop in interface DropControllercontext - 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 | |||||||||