org.cruxframework.crux.widgets.client.util.draganddrop
Class MoveCapability.DragMoveAction

java.lang.Object
  extended by org.cruxframework.crux.widgets.client.util.draganddrop.GenericDragEventHandler.DragAction<MoveCapability.Movable<?>>
      extended by 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

Constructor Summary
MoveCapability.DragMoveAction(MoveCapability.Movable<?> movable)
           
 
Method Summary
 GenericDragEventHandler.DragAndDropFeature getFeature()
          Gets the feature associated to this action
 void onDrag(int x, int y, int dragStartX, int dragStartY)
          Action to me taken when drag happens
 void onStartDrag()
          Action to me taken when drag starts
 
Methods inherited from class org.cruxframework.crux.widgets.client.util.draganddrop.GenericDragEventHandler.DragAction
getDraggable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MoveCapability.DragMoveAction

public MoveCapability.DragMoveAction(MoveCapability.Movable<?> movable)
Parameters:
movable -
move -
Method Detail

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 © 2015. All rights reserved.