org.nakedobjects.plugins.dnd
Class Drag

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.PointerEvent
      extended by org.nakedobjects.plugins.dnd.Drag
Direct Known Subclasses:
ContentDrag, InternalDrag, ViewDrag

public abstract class Drag
extends PointerEvent

Details a drag event - from drag start to drop,


Field Summary
 
Fields inherited from class org.nakedobjects.plugins.dnd.PointerEvent
mods
 
Constructor Summary
protected Drag()
           
 
Method Summary
abstract  void cancel(Viewer viewer)
          Indicates the drag has been cancelled; no action should be taken.
abstract  void drag(View target, Location location, int mods)
          Indicates that the drag state has changed.
abstract  void end(Viewer viewer)
          Indicates the drag has properly ended (the mouse button has been released)
abstract  View getOverlay()
           
 
Methods inherited from class org.nakedobjects.plugins.dnd.PointerEvent
button1, button2, button3, isAlt, isCtrl, isMeta, isShift, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Drag

protected Drag()
Method Detail

cancel

public abstract void cancel(Viewer viewer)
Indicates the drag has been cancelled; no action should be taken.


drag

public abstract void drag(View target,
                          Location location,
                          int mods)
Indicates that the drag state has changed.


end

public abstract void end(Viewer viewer)
Indicates the drag has properly ended (the mouse button has been released)


getOverlay

public abstract View getOverlay()


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.