|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.allen_sauer.gwt.dnd.client.AbstractDragController
org.mobicents.servlet.management.client.dnd.PickupDragController
public class PickupDragController
DragController used for drag-and-drop operations where a draggable widget or
drag proxy is temporarily picked up and dragged around the boundary panel.
Be sure to register a DropController for each drop target.
registerDropController(DropController)| Field Summary |
|---|
| Fields inherited from class com.allen_sauer.gwt.dnd.client.AbstractDragController |
|---|
context, CSS_DRAGGABLE, CSS_DRAGGING, CSS_HANDLE |
| Constructor Summary | |
|---|---|
PickupDragController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel,
boolean allowDroppingOnBoundaryPanel)
Create a new pickup-and-move style drag controller. |
|
| Method Summary | |
|---|---|
void |
dragEnd()
|
void |
dragMove()
|
void |
dragStart()
|
boolean |
getBehaviorBoundaryPanelDrop()
Whether or not dropping on the boundary panel is permitted. |
boolean |
getBehaviorDragProxy()
Determine whether or not this controller automatically creates a drag proxy for each drag operation. |
protected com.allen_sauer.gwt.dnd.client.drop.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(com.allen_sauer.gwt.dnd.client.DragContext context)
Called by AbstractDragController.dragStart(Widget) to allow subclasses to
provide their own drag proxies. |
void |
previewDragEnd()
|
void |
registerDropController(com.allen_sauer.gwt.dnd.client.drop.DropController dropController)
Register a new DropController, representing a new drop target, with this drag controller. |
void |
resetCache()
|
protected void |
restoreSelectedWidgetsLocation()
Restore the selected widgets to their original location. |
protected void |
restoreSelectedWidgetsStyle()
Restore the selected widgets with their original style. |
protected void |
saveSelectedWidgetsLocationAndStyle()
Save the selected widgets' current location in case they much be restored due to a cancelled drop. |
void |
setBehaviorBoundaryPanelDrop(boolean allowDroppingOnBoundaryPanel)
Set whether or not widgets may be dropped anywhere on the boundary panel. |
void |
setBehaviorDragProxy(boolean dragProxyEnabled)
Set whether or not this controller should automatically create a drag proxy for each drag operation. |
void |
unregisterDropController(com.allen_sauer.gwt.dnd.client.drop.DropController dropController)
Unregister a DropController from this drag controller. |
| Methods inherited from class com.allen_sauer.gwt.dnd.client.AbstractDragController |
|---|
addDragHandler, clearSelection, dragEnd, dragStart, getBehaviorConstrainedToBoundaryPanel, getBehaviorDragStartSensitivity, getBehaviorMultipleSelection, getBoundaryPanel, getDropControllerCollection, getIntersectDropController, getIntersectDropController, getMovableWidget, makeDraggable, makeDraggable, makeNotDraggable, newBoundaryDropController, notifyDragEnd, previewDragEnd, previewDragStart, previewDragStart, removeDragHandler, restoreDraggableLocation, restoreDraggableStyle, saveDraggableLocationAndStyle, setBehaviorConstrainedToBoundaryPanel, setBehaviorDragStartSensitivity, setBehaviorMultipleSelection, setConstrainWidgetToBoundaryPanel, toggleSelection |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PickupDragController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel,
boolean allowDroppingOnBoundaryPanel)
Note: An implicit BoundaryDropController is created and registered
automatically.
boundaryPanel - the desired boundary panel or RootPanel.get()
if entire document body is to be the boundaryallowDroppingOnBoundaryPanel - whether or not boundary panel should
allow dropping| Method Detail |
|---|
public void dragEnd()
dragEnd in interface com.allen_sauer.gwt.dnd.client.DragControllerdragEnd in class com.allen_sauer.gwt.dnd.client.AbstractDragControllerpublic void dragMove()
public void dragStart()
dragStart in interface com.allen_sauer.gwt.dnd.client.DragControllerdragStart in class com.allen_sauer.gwt.dnd.client.AbstractDragControllerpublic boolean getBehaviorBoundaryPanelDrop()
true if dropping on the boundary panel is allowedpublic boolean getBehaviorDragProxy()
#maybeNewDraggableProxy(Widget)
true if drag proxy behavior is enabled
public void previewDragEnd()
throws com.allen_sauer.gwt.dnd.client.VetoDragException
previewDragEnd in interface com.allen_sauer.gwt.dnd.client.DragControllerpreviewDragEnd in class com.allen_sauer.gwt.dnd.client.AbstractDragControllercom.allen_sauer.gwt.dnd.client.VetoDragExceptionpublic void registerDropController(com.allen_sauer.gwt.dnd.client.drop.DropController dropController)
dropController - the controller to registerunregisterDropController(DropController)public void resetCache()
resetCache in interface com.allen_sauer.gwt.dnd.client.DragControllerresetCache in class com.allen_sauer.gwt.dnd.client.AbstractDragControllerpublic void setBehaviorBoundaryPanelDrop(boolean allowDroppingOnBoundaryPanel)
false when you only want explicitly registered drop
controllers to accept drops. Defaults to true.
allowDroppingOnBoundaryPanel - true to allow droppingpublic void setBehaviorDragProxy(boolean dragProxyEnabled)
#maybeNewDraggableProxy(Widget).
dragProxyEnabled - true to enable drag proxy behaviorpublic void unregisterDropController(com.allen_sauer.gwt.dnd.client.drop.DropController dropController)
dropController - the controller to registerregisterDropController(DropController)
protected com.allen_sauer.gwt.dnd.client.drop.BoundaryDropController newBoundaryDropController(com.google.gwt.user.client.ui.AbsolutePanel boundaryPanel,
boolean allowDroppingOnBoundaryPanel)
allowDroppingOnBoundaryPanel to false.
newBoundaryDropController in class com.allen_sauer.gwt.dnd.client.AbstractDragControllerboundaryPanel - the panel to which our drag-and-drop operations are constrainedallowDroppingOnBoundaryPanel - whether or not dropping is allowed on the boundary panel
protected com.google.gwt.user.client.ui.Widget newDragProxy(com.allen_sauer.gwt.dnd.client.DragContext context)
AbstractDragController.dragStart(Widget) to allow subclasses to
provide their own drag proxies.
context - the current drag context
protected void restoreSelectedWidgetsLocation()
saveSelectedWidgetsLocationAndStyle(),
restoreSelectedWidgetsStyle()protected void restoreSelectedWidgetsStyle()
saveSelectedWidgetsLocationAndStyle(),
restoreSelectedWidgetsLocation()protected void saveSelectedWidgetsLocationAndStyle()
restoreSelectedWidgetsLocation()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||