cz.cuni.pogamut.shed.widget
Class DragAndDropMoveProvider<LAP_ELEMENT extends PoshElement>

Package class diagram package DragAndDropMoveProvider
java.lang.Object
  extended by cz.cuni.pogamut.shed.widget.DragAndDropMoveProvider<LAP_ELEMENT>
All Implemented Interfaces:
org.netbeans.api.visual.action.MoveProvider

public class DragAndDropMoveProvider<LAP_ELEMENT extends PoshElement>
extends Object
implements org.netbeans.api.visual.action.MoveProvider

Move provider for some Widgets. This provider simluates drag and drop action that starts by dragging @sourceWidget somewhere and dropping it. If the widget it is dropped to a IPresentedWidget (target widget) and take AbstractAcceptActions from its its IPresenter. If AbstractAcceptAction.getDataFlavor() of target widget is same as the DataFlavor of @sourceWidget and they are not the same Widget, perform the action of the accept action.

Author:
Honza Havlicek

Method Summary
 Point getOriginalLocation(org.netbeans.api.visual.widget.Widget widget)
           
 void movementFinished(org.netbeans.api.visual.widget.Widget widget)
           
 void movementStarted(org.netbeans.api.visual.widget.Widget widget)
           
 void setNewLocation(org.netbeans.api.visual.widget.Widget widget, Point point)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOriginalLocation

public Point getOriginalLocation(org.netbeans.api.visual.widget.Widget widget)
Specified by:
getOriginalLocation in interface org.netbeans.api.visual.action.MoveProvider

movementStarted

public void movementStarted(org.netbeans.api.visual.widget.Widget widget)
Specified by:
movementStarted in interface org.netbeans.api.visual.action.MoveProvider

setNewLocation

public void setNewLocation(org.netbeans.api.visual.widget.Widget widget,
                           Point point)
Specified by:
setNewLocation in interface org.netbeans.api.visual.action.MoveProvider

movementFinished

public void movementFinished(org.netbeans.api.visual.widget.Widget widget)
Specified by:
movementFinished in interface org.netbeans.api.visual.action.MoveProvider


Copyright © 2013 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.