bibliothek.gui.dock.event
Class DockControllerAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockControllerAdapter
All Implemented Interfaces:
DockControllerListener, DockRegisterListener, DockRelocatorListener

public abstract class DockControllerAdapter
extends Object
implements DockControllerListener

An abstract implementation of DockControllerListener. All methods of this class are empty. This class can be used instead of DockControllerListener when only a few selected methods have to be implemented.

Author:
Benjamin Sigg

Constructor Summary
DockControllerAdapter()
           
 
Method Summary
 void dockableDrag(DockController controller, Dockable dockable, DockStation station)
          Invoked before a Dockable is moved around.
 void dockableFocused(DockController controller, Dockable dockable)
          Invoked when dockable has gained the focus.
 void dockablePut(DockController controller, Dockable dockable, DockStation station)
          Invoked after a Dockable was moved.
 void dockableRegistered(DockController controller, Dockable dockable)
          Invoked after a Dockable was registered.
 void dockableRegistering(DockController controller, Dockable dockable)
          Invoked right before the dockable is registered in the controller.
 void dockableUnregistered(DockController controller, Dockable dockable)
          Invoked after dockable has been unregistered from controller.
 void dockStationRegistered(DockController controller, DockStation station)
          Invoked after a DockStation was registered.
 void dockStationRegistering(DockController controller, DockStation station)
          Invoked right before the station is registered in the controller.
 void dockStationUnregistered(DockController controller, DockStation station)
          Invoked after station has been unregistered from controller.
 void titleBound(DockController controller, DockTitle title, Dockable dockable)
          Called when title was bound to dockable.
 void titleUnbound(DockController controller, DockTitle title, Dockable dockable)
          Called when title was unbound from dockable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockControllerAdapter

public DockControllerAdapter()
Method Detail

dockableRegistered

public void dockableRegistered(DockController controller,
                               Dockable dockable)
Description copied from interface: DockRegisterListener
Invoked after a Dockable was registered. Note that this method can be called while a Dockable is dragged. See the method DockController.isOnMove().

Specified by:
dockableRegistered in interface DockRegisterListener
Parameters:
controller - the controller where dockable was added
dockable - the Dockable that was added

dockStationRegistered

public void dockStationRegistered(DockController controller,
                                  DockStation station)
Description copied from interface: DockRegisterListener
Invoked after a DockStation was registered. This method can be called while a Dockable is dragged. See the method DockController.isOnMove().

Specified by:
dockStationRegistered in interface DockRegisterListener
Parameters:
controller - the controller where station was added
station - the DockStation that was added

dockableRegistering

public void dockableRegistering(DockController controller,
                                Dockable dockable)
Description copied from interface: DockRegisterListener
Invoked right before the dockable is registered in the controller.

Specified by:
dockableRegistering in interface DockRegisterListener
Parameters:
controller - the controller who does not yet know dockable.
dockable - the dockable who does not yet know controller.

dockStationRegistering

public void dockStationRegistering(DockController controller,
                                   DockStation station)
Description copied from interface: DockRegisterListener
Invoked right before the station is registered in the controller.

Specified by:
dockStationRegistering in interface DockRegisterListener
Parameters:
controller - the controller who does not yet know station.
station - the station who does not yet know controller.

dockableUnregistered

public void dockableUnregistered(DockController controller,
                                 Dockable dockable)
Description copied from interface: DockRegisterListener
Invoked after dockable has been unregistered from controller. Note that this method can be invoked while a Dockable is dragged, use the method DockController.isOnMove().

Specified by:
dockableUnregistered in interface DockRegisterListener
Parameters:
controller - the controller from whom dockable was removed
dockable - the removed Dockable

dockStationUnregistered

public void dockStationUnregistered(DockController controller,
                                    DockStation station)
Description copied from interface: DockRegisterListener
Invoked after station has been unregistered from controller. Note that this method can be invoked while a Dockable is dragged, use the method DockController.isOnMove().

Specified by:
dockStationUnregistered in interface DockRegisterListener
Parameters:
controller - the controller from whom dockable was removed
station - the removed DockStation

dockableDrag

public void dockableDrag(DockController controller,
                         Dockable dockable,
                         DockStation station)
Description copied from interface: DockRelocatorListener
Invoked before a Dockable is moved around. This method is called after the user has released the mouse which was dragging a DockTitle around.

Specified by:
dockableDrag 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.dockablePut(DockController, Dockable, DockStation)

dockablePut

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

Specified by:
dockablePut 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.dockableDrag(DockController, Dockable, DockStation)

titleBound

public void titleBound(DockController controller,
                       DockTitle title,
                       Dockable dockable)
Description copied from interface: DockControllerListener
Called when title was bound to dockable. This method is called after the DockTitle.bind()-method was invoked.

Specified by:
titleBound in interface DockControllerListener
Parameters:
controller - the origin of the event
title - the DockTitle that was bound
dockable - the owner of title

titleUnbound

public void titleUnbound(DockController controller,
                         DockTitle title,
                         Dockable dockable)
Description copied from interface: DockControllerListener
Called when title was unbound from dockable. This method is called after the DockTitle.bind()-method was invoked.

Specified by:
titleUnbound in interface DockControllerListener
Parameters:
controller - the origin of the event
title - the DockTitle which was unbound
dockable - the old owner of title

dockableFocused

public void dockableFocused(DockController controller,
                            Dockable dockable)
Description copied from interface: DockControllerListener
Invoked when dockable has gained the focus.

Specified by:
dockableFocused in interface DockControllerListener
Parameters:
controller - the origin of the event
dockable - the Dockable which is now focused