bibliothek.gui.dock.event
Class DockRelocatorAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockRelocatorAdapter
All Implemented Interfaces:
DockRelocatorListener

public abstract class DockRelocatorAdapter
extends java.lang.Object
implements DockRelocatorListener

An implementation of DockRelocatorListener that contains only empty methods.

Author:
Benjamin Sigg

Constructor Summary
DockRelocatorAdapter()
           
 
Method Summary
 void cancel(DockController controller, Dockable dockable)
          Invoked when a drag and drop operation was initiated, but canceld.
 void drag(DockController controller, Dockable dockable, DockStation station)
          Invoked when a drag and drop operation has been confirmed.
 void drop(DockController controller, Dockable dockable, DockStation station)
          Invoked after a Dockable was dropped.
 void init(DockController controller, Dockable dockable)
          Invoked when a drag and drop operation is initiated.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockRelocatorAdapter

public DockRelocatorAdapter()
Method Detail

cancel

public void cancel(DockController controller,
                   Dockable dockable)
Description copied from interface: DockRelocatorListener
Invoked when a drag and drop operation was initiated, but canceld. This method can be called any time after DockRelocatorListener.init(DockController, Dockable). was called.

Specified by:
cancel in interface DockRelocatorListener
Parameters:
controller - the origin of the event
dockable - the element that has been grabbed

drag

public void drag(DockController controller,
                 Dockable dockable,
                 DockStation station)
Description copied from interface: DockRelocatorListener
Invoked when a drag and drop operation has been confirmed. This method is called after the user made a drop-gesture, but before dockable is dragged from its old parent.

Specified by:
drag in interface DockRelocatorListener
Parameters:
controller - the origin of the event
dockable - the Dockable which was dragged
station - the future parent of dockable
See Also:
DockRelocatorListener.drop(DockController, Dockable, DockStation)

drop

public void drop(DockController controller,
                 Dockable dockable,
                 DockStation station)
Description copied from interface: DockRelocatorListener
Invoked after a Dockable was dropped.

Specified by:
drop in interface DockRelocatorListener
Parameters:
controller - the origin of the event
dockable - the Dockable which was dragged
station - the new parent of dockable
See Also:
DockRelocatorListener.drag(DockController, Dockable, DockStation)

init

public void init(DockController controller,
                 Dockable dockable)
Description copied from interface: DockRelocatorListener
Invoked when a drag and drop operation is initiated. This method is called when the user made the gesture of dragging, but not yet of dropping.

Specified by:
init in interface DockRelocatorListener
Parameters:
controller - the origin of the event
dockable - the element that has been grabbed