HorizontalPanelDropController
or VerticalPanelDropController
instead.@Deprecated public class IndexedDropController extends AbstractIndexedDropController
DropController
for instances of IndexedPanel
.Constructor and Description |
---|
IndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
Deprecated.
Construct an indexed panel drop controller.
|
Modifier and Type | Method and Description |
---|---|
protected LocationWidgetComparator |
getLocationWidgetComparator()
Deprecated.
Required implementation method which provides the desired comparator strategy.
|
protected 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 com.google.gwt.user.client.ui.Widget |
newPositioner(DragContext context)
Deprecated.
Called by
AbstractIndexedDropController.onEnter(DragContext) to create a new positioner
widget for this indexed drop target. |
onDrop, onEnter, onLeave, onMove, onPreviewDrop
getDropTarget
public IndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
dropTarget
- the indexed panel drop targetprotected LocationWidgetComparator getLocationWidgetComparator()
AbstractIndexedDropController
getLocationWidgetComparator
in class AbstractIndexedDropController
protected void insert(com.google.gwt.user.client.ui.Widget widget, int beforeIndex)
AbstractIndexedDropController
insert
in class AbstractIndexedDropController
widget
- the widget to be insertedbeforeIndex
- the widget index before which widget
should be insertedprotected com.google.gwt.user.client.ui.Widget newPositioner(DragContext context)
AbstractIndexedDropController
AbstractIndexedDropController.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.newPositioner
in class AbstractIndexedDropController
context
- The current drag context.