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

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.AbstractInsertPanelDropController
              extended by com.allen_sauer.gwt.dnd.client.drop.VerticalPanelDropController
All Implemented Interfaces:
DropController

public class VerticalPanelDropController
extends AbstractInsertPanelDropController

A DropController for instances of VerticalPanel. TODO VerticalPanel performance is slow because of positioner DOM manipulation


Field Summary
 
Fields inherited from class com.allen_sauer.gwt.dnd.client.drop.AbstractInsertPanelDropController
dropIndex, dropTarget
 
Constructor Summary
VerticalPanelDropController(com.google.gwt.user.client.ui.VerticalPanel dropTarget)
          Construct an VerticalPanelDropController.
 
Method Summary
protected  LocationWidgetComparator getLocationWidgetComparator()
          Required implementation method which provides the desired comparator strategy.
protected  com.google.gwt.user.client.ui.Widget newPositioner(DragContext context)
          Called by AbstractInsertPanelDropController.onEnter(DragContext) to create a new positioner widget for this InsertPanel drop target.
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.drop.AbstractInsertPanelDropController
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

VerticalPanelDropController

public VerticalPanelDropController(com.google.gwt.user.client.ui.VerticalPanel dropTarget)
Construct an VerticalPanelDropController.

Parameters:
dropTarget - the VerticalPanel drop target
Method Detail

getLocationWidgetComparator

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

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

newPositioner

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

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


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