com.allen_sauer.gwt.dnd.demo.client.example.flextable
Class FlexTableRowDragController

java.lang.Object
  extended by com.allen_sauer.gwt.dnd.client.AbstractDragController
      extended by com.allen_sauer.gwt.dnd.client.PickupDragController
          extended by com.allen_sauer.gwt.dnd.demo.client.example.flextable.FlexTableRowDragController
All Implemented Interfaces:
DragController, FiresDragEvents

public final class FlexTableRowDragController
extends PickupDragController

Allows table rows to dragged by their handle.


Field Summary
 
Fields inherited from class com.allen_sauer.gwt.dnd.client.AbstractDragController
context
 
Constructor Summary
FlexTableRowDragController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel)
           
 
Method Summary
 void dragEnd()
          Callback method for MouseDragHandler.
protected  BoundaryDropController newBoundaryDropController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel, boolean allowDroppingOnBoundaryPanel)
          Create a new BoundaryDropController to manage our boundary panel as a drop target.
protected  com.google.gwt.user.client.ui.Widget newDragProxy(DragContext context)
          Called by PickupDragController.dragStart() to allow subclasses to provide their own drag proxies.
 void setBehaviorDragProxy(boolean dragProxyEnabled)
          Set whether or not this controller should automatically create a drag proxy for each drag operation.
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.PickupDragController
dragMove, dragStart, getBehaviorBoundaryPanelDrop, getBehaviorDragProxy, getSelectedWidgets, previewDragEnd, registerDropController, resetCache, restoreSelectedWidgetsLocation, restoreSelectedWidgetsStyle, saveSelectedWidgetsLocationAndStyle, setBehaviorBoundaryPanelDrop, unregisterDropController, unregisterDropControllers
 
Methods inherited from class com.allen_sauer.gwt.dnd.client.AbstractDragController
addDragHandler, clearSelection, getBehaviorCancelDocumentSelections, getBehaviorConstrainedToBoundaryPanel, getBehaviorDragStartSensitivity, getBehaviorMultipleSelection, getBehaviorScrollIntoView, getBoundaryPanel, makeDraggable, makeDraggable, makeNotDraggable, previewDragStart, removeDragHandler, setBehaviorCancelDocumentSelections, setBehaviorConstrainedToBoundaryPanel, setBehaviorDragStartSensitivity, setBehaviorMultipleSelection, setBehaviorScrollIntoView, setConstrainWidgetToBoundaryPanel, toggleSelection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexTableRowDragController

public FlexTableRowDragController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel)
Method Detail

dragEnd

public void dragEnd()
Description copied from interface: DragController
Callback method for MouseDragHandler.

Specified by:
dragEnd in interface DragController
Overrides:
dragEnd in class PickupDragController

setBehaviorDragProxy

public void setBehaviorDragProxy(boolean dragProxyEnabled)
Description copied from class: PickupDragController
Set whether or not this controller should automatically create a drag proxy for each drag operation.

Overrides:
setBehaviorDragProxy in class PickupDragController
Parameters:
dragProxyEnabled - true to enable drag proxy behavior

newBoundaryDropController

protected BoundaryDropController newBoundaryDropController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel,
                                                           boolean allowDroppingOnBoundaryPanel)
Description copied from class: PickupDragController
Create a new BoundaryDropController to manage our boundary panel as a drop target. To ensure that draggable widgets can only be dropped on registered drop targets, set allowDroppingOnBoundaryPanel to false.

Overrides:
newBoundaryDropController in class PickupDragController
Parameters:
boundaryPanel - the panel to which our drag-and-drop operations are constrained
allowDroppingOnBoundaryPanel - whether or not dropping is allowed on the boundary panel
Returns:
the new BoundaryDropController

newDragProxy

protected com.google.gwt.user.client.ui.Widget newDragProxy(DragContext context)
Description copied from class: PickupDragController
Called by PickupDragController.dragStart() to allow subclasses to provide their own drag proxies.

Overrides:
newDragProxy in class PickupDragController
Parameters:
context - the current drag context
Returns:
a new drag proxy