|
||||||||||
| 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
com.allen_sauer.gwt.dnd.client.drop.AbstractPositioningDropController
com.allen_sauer.gwt.dnd.client.drop.AbstractInsertPanelDropController
public abstract class AbstractInsertPanelDropController
A DropController for InsertPanel drop targets.
| Field Summary | |
|---|---|
protected int |
dropIndex
|
protected com.google.gwt.user.client.ui.InsertPanel |
dropTarget
Our drop target. |
| Constructor Summary | |
|---|---|
AbstractInsertPanelDropController(com.google.gwt.user.client.ui.InsertPanel dropTarget)
|
|
| Method Summary | |
|---|---|
protected abstract LocationWidgetComparator |
getLocationWidgetComparator()
Required implementation method which provides the desired comparator strategy. |
protected abstract com.google.gwt.user.client.ui.Widget |
newPositioner(DragContext context)
Called by onEnter(DragContext) to create a new
positioner widget for this InsertPanel drop target. |
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 com.allen_sauer.gwt.dnd.client.drop.AbstractDropController |
|---|
getDropTarget |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final com.google.gwt.user.client.ui.InsertPanel dropTarget
protected int dropIndex
| Constructor Detail |
|---|
public AbstractInsertPanelDropController(com.google.gwt.user.client.ui.InsertPanel dropTarget)
dropTarget - the insert panel drop targetFlowPanelDropController.FlowPanelDropController(com.google.gwt.user.client.ui.FlowPanel)| Method Detail |
|---|
public void onDrop(DragContext context)
DropController
onDrop in interface DropControlleronDrop in class AbstractDropControllercontext - the current drag contextDropController.onPreviewDrop(DragContext)public void onEnter(DragContext context)
DropController
onEnter in interface DropControlleronEnter in class AbstractDropControllercontext - the current drag contextDropController.onLeave(DragContext)public void onLeave(DragContext context)
DropControllerDropController.onDrop(DragContext) to allow for any cleanup.
onLeave in interface DropControlleronLeave in class AbstractDropControllercontext - the current drag contextDropController.onEnter(DragContext)public void onMove(DragContext context)
DropControllerDropController.onEnter(DragContext) is called before this method is called.
onMove in interface DropControlleronMove in class AbstractDropControllercontext - 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 DropControlleronPreviewDrop in class AbstractDropControllercontext - the current drag context
VetoDragException - if the proposed operation is unacceptableprotected abstract LocationWidgetComparator getLocationWidgetComparator()
protected abstract com.google.gwt.user.client.ui.Widget newPositioner(DragContext context)
onEnter(DragContext) to create a new
positioner widget for this InsertPanel drop target. Override this method to customize
the look and feel of
your positioner. The positioner widget may not have any CSS borders or margins, although there
are no such restrictions on the children of the positioner widget. If borders and/or margins
are desired, wrap that widget in a SimplePanel with a
0px border and margin.
context - The current drag context.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||