bibliothek.gui.dock.control
Class FocusController.StationListener

java.lang.Object
  extended by bibliothek.gui.dock.control.FocusController.StationListener
All Implemented Interfaces:
DockStationListener
Enclosing class:
FocusController

private class FocusController.StationListener
extends java.lang.Object
implements DockStationListener

A listener observing all stations and changing the focused Dockable when necessary.

Author:
Benjamin Sigg

Constructor Summary
private FocusController.StationListener()
           
 
Method Summary
 void dockableAdded(DockStation station, Dockable dockable)
          Invoked after dockable has been added to station.
 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 dockableVisibiltySet(DockStation station, Dockable dockable, boolean visible)
          Invoked if the visibility of a child has been changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusController.StationListener

private FocusController.StationListener()
Method Detail

dockableAdded

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

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

dockableVisibiltySet

public void dockableVisibiltySet(DockStation station,
                                 Dockable dockable,
                                 boolean visible)
Description copied from interface: DockStationListener
Invoked if the visibility of a child has been changed. The visibility has to be implemented in a global scale. Callers may use the class DockableVisibilityManager to organize the calls in an easy way.

Specified by:
dockableVisibiltySet 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

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

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

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