com.allen_sauer.gwt.dnd.client.drop
Class IndexedDropController

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.client.drop.AbstractDropController
      extended by com.allen_sauer.gwt.dnd.client.drop.AbstractPositioningDropController
          extended by com.allen_sauer.gwt.dnd.client.drop.AbstractIndexedDropController
              extended by com.allen_sauer.gwt.dnd.client.drop.IndexedDropController
All Implemented Interfaces:
DropController

Deprecated. User HorizontalPanelDropController or VerticalPanelDropController instead.

@Deprecated
public class IndexedDropController
extends AbstractIndexedDropController

A DropController for instances of IndexedPanel.

See Also:
TODO VerticalPanel performance is slow because of positioner DOM manipulation

Constructor Summary
IndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
          Deprecated. Construct an indexed panel drop controller.
 
Method Summary
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.
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.drop.AbstractIndexedDropController
onDrop, onEnter, onLeave, onMove, onPreviewDrop
 
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
 

Constructor Detail

IndexedDropController

public IndexedDropController(com.google.gwt.user.client.ui.IndexedPanel dropTarget)
Deprecated. 
Construct an indexed panel drop controller.

Parameters:
dropTarget - the indexed panel drop target
Method Detail

getLocationWidgetComparator

protected LocationWidgetComparator getLocationWidgetComparator()
Deprecated. 
Description copied from class: AbstractIndexedDropController
Required implementation method which provides the desired comparator strategy.

Specified by:
getLocationWidgetComparator in class AbstractIndexedDropController
Returns:
the comparator strategy to be used

insert

protected void insert(com.google.gwt.user.client.ui.Widget widget,
                      int beforeIndex)
Deprecated. 
Description copied from class: AbstractIndexedDropController
Insert the provided widget using an appropriate drop target specific method. TODO remove after enhancement for issue 1112 provides InsertPanel interface

Specified by:
insert in class AbstractIndexedDropController
Parameters:
widget - the widget to be inserted
beforeIndex - the widget index before which widget should be inserted

newPositioner

protected com.google.gwt.user.client.ui.Widget newPositioner(DragContext context)
Deprecated. 
Description copied from class: AbstractIndexedDropController
Called by 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.

Specified by:
newPositioner in class AbstractIndexedDropController
Parameters:
context - The current drag context.
Returns:
a new positioner widget


Copyright © 2011 Sage Software, Inc. All rights reserved.