org.cruxframework.crux.widgets.client.util.draganddrop
Class MoveCapability.DragMoveAction
java.lang.Object
org.cruxframework.crux.widgets.client.util.draganddrop.GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
org.cruxframework.crux.widgets.client.util.draganddrop.MoveCapability.DragMoveAction
- Enclosing class:
- MoveCapability
public static class MoveCapability.DragMoveAction
- extends GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
The logic needed to move a widget when user drags it
- Author:
- Gesse Dafe
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MoveCapability.DragMoveAction
public MoveCapability.DragMoveAction(MoveCapability.Movable<?> movable)
- Parameters:
movable - move -
onStartDrag
public void onStartDrag()
- Description copied from class:
GenericDragEventHandler.DragAction
- Action to me taken when drag starts
- Specified by:
onStartDrag in class GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
onDrag
public void onDrag(int x,
int y,
int dragStartX,
int dragStartY)
- Description copied from class:
GenericDragEventHandler.DragAction
- Action to me taken when drag happens
- Specified by:
onDrag in class GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
getFeature
public GenericDragEventHandler.DragAndDropFeature getFeature()
- Description copied from class:
GenericDragEventHandler.DragAction
- Gets the feature associated to this action
- Specified by:
getFeature in class GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
- Returns:
Copyright © 2014. All rights reserved.