AbstractInsertPanelDropController
instead@Deprecated public abstract class AbstractIndexedDropController extends AbstractPositioningDropController
DropController
for IndexedPanel
drop targets.Constructor and Description |
---|
AbstractIndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract LocationWidgetComparator |
getLocationWidgetComparator()
Deprecated.
Required implementation method which provides the desired comparator strategy.
|
protected abstract void |
insert(com.google.gwt.user.client.ui.Widget widget,
int beforeIndex)
Deprecated.
Insert the provided widget using an appropriate drop target specific method.
|
protected abstract com.google.gwt.user.client.ui.Widget |
newPositioner(DragContext context)
Deprecated.
Called by
onEnter(DragContext) to create a new positioner
widget for this indexed drop target. |
void |
onDrop(DragContext context)
Deprecated.
Called when the draggable widget or its proxy is dropped on our drop target.
|
void |
onEnter(DragContext context)
Deprecated.
Called when the draggable widget or its proxy engages our drop target.
|
void |
onLeave(DragContext context)
Deprecated.
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)
Deprecated.
Called with each mouse movement while the reference widget is engaging our drop target.
|
void |
onPreviewDrop(DragContext context)
Deprecated.
Called just prior to
DropController.onDrop(DragContext) to allow the drop operation to be cancelled
by throwing a VetoDragException . |
getDropTarget
public AbstractIndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
dropTarget
- the indexed panel drop targetFlowPanelDropController.FlowPanelDropController(com.google.gwt.user.client.ui.FlowPanel)
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 onMove(DragContext context)
DropController
DropController.onEnter(DragContext)
is called before this method is called.onMove
in interface DropController
onMove
in class AbstractDropController
context
- the current drag contextDropController.onEnter(DragContext)
,
DropController.onLeave(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 unacceptableprotected abstract LocationWidgetComparator getLocationWidgetComparator()
protected abstract void insert(com.google.gwt.user.client.ui.Widget widget, int beforeIndex)
widget
- the widget to be insertedbeforeIndex
- the widget index before which widget
should be insertedprotected abstract com.google.gwt.user.client.ui.Widget newPositioner(DragContext context)
onEnter(DragContext)
to create a new positioner
widget for this indexed 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.