bibliothek.gui.dock.event
Class DockStationAdapter

java.lang.Object
  extended by bibliothek.gui.dock.event.DockStationAdapter
All Implemented Interfaces:
DockStationListener
Direct Known Subclasses:
DockableShowingManager, ExternalizingCGridAreaConfiguration.SplitInserter

public abstract class DockStationAdapter
extends Object
implements DockStationListener

An abstract implementation of DockStationListener. All methods of this class are empty. The class can be used instead of DockStationListener if only a few methods have to be implemented.

Author:
Benjamin Sigg

Constructor Summary
DockStationAdapter()
           
 
Method Summary
 void dockableAdded(DockStation station, Dockable dockable)
          Invoked after dockable has been added to station.
Note: this method is called when the tree of DockElements contains the new element, other properties - like the bounds of the Component of dockable - might not yet be set.
 void dockableAdding(DockStation station, Dockable dockable)
          Invoked before dockable is added to station.
 void dockableRemoved(DockStation station, Dockable dockable)
          Invoked after dockable has been removed from station.
 void dockableRemoving(DockStation station, Dockable dockable)
          Invoked before dockable is removed from station.
 void dockableSelected(DockStation station, Dockable oldSelection, Dockable newSelection)
          Called when dockable has been selected.
 void dockableShowingChanged(DockStation station, Dockable dockable, boolean visible)
          Invoked if the visibility of a child has been changed.
 void dockablesRepositioned(DockStation station, Dockable[] dockables)
          Called when the location and/or size of one or several dockables changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DockStationAdapter

public DockStationAdapter()
Method Detail

dockableAdding

public void dockableAdding(DockStation station,
                           Dockable dockable)
Description copied from interface: DockStationListener
Invoked before dockable is added to station.

Specified by:
dockableAdding in interface DockStationListener
Parameters:
station - the station where the new child will be added
dockable - the new child

dockableRemoving

public void dockableRemoving(DockStation station,
                             Dockable dockable)
Description copied from interface: DockStationListener
Invoked before dockable is removed from station.

Specified by:
dockableRemoving in interface DockStationListener
Parameters:
station - the station where the old child will be removed
dockable - the old child

dockableAdded

public void dockableAdded(DockStation station,
                          Dockable dockable)
Description copied from interface: DockStationListener
Invoked after dockable has been added to station.
Note: this method is called when the tree of DockElements contains the new element, other properties - like the bounds of the Component of dockable - might not yet be set.

Specified by:
dockableAdded in interface DockStationListener
Parameters:
station - the station where the new child was added
dockable - the new child

dockableRemoved

public void dockableRemoved(DockStation station,
                            Dockable dockable)
Description copied from interface: DockStationListener
Invoked after dockable has been removed from station.

Specified by:
dockableRemoved in interface DockStationListener
Parameters:
station - the station where the old child was removed
dockable - the old child

dockableShowingChanged

public void dockableShowingChanged(DockStation station,
                                   Dockable dockable,
                                   boolean visible)
Description copied from interface: DockStationListener
Invoked if the visibility of a child has been changed. In this context visibility means whether the user can or cannot see the dockable. See also Dockable.isDockableShowing().
Callers may use the class DockableShowingManager to organize the calls in an easy way.

Specified by:
dockableShowingChanged in interface DockStationListener
Parameters:
station - the station whose children have changed their visibility
dockable - the Dockable whose visibility has changed
visible - the new visibility-state

dockableSelected

public void dockableSelected(DockStation station,
                             Dockable oldSelection,
                             Dockable newSelection)
Description copied from interface: DockStationListener
Called when dockable has been selected. The value of dockable should be the same as DockStation.getFrontDockable().

Specified by:
dockableSelected in interface DockStationListener
Parameters:
station - the source of the event
oldSelection - the element which was selected before the change, can be null
newSelection - the current value of DockStation.getFrontDockable(), can be null

dockablesRepositioned

public void dockablesRepositioned(DockStation station,
                                  Dockable[] dockables)
Description copied from interface: DockStationListener
Called when the location and/or size of one or several dockables changed. This means that DockStation.getDockableProperty(Dockable, Dockable) now returns another value than before. This method may or may not be called for Dockables that were just added or being removed from station.

Specified by:
dockablesRepositioned in interface DockStationListener
Parameters:
station - the source of the event
dockables - the affected elements