bibliothek.gui.dock.event
Interface DockStationListener

All Known Implementing Classes:
DefaultDockRelocator.TitleListener, DockableVisibilityManager, DockAdapter, DockController.TitleListener, DockRegister.StationListener, DockStationAdapter, FlapDockStation.VisibleListener, FocusController.StationListener, FullScreenClickableListener, SplitDockStation.VisibleListener, StackDockStation.VisibleListener

public interface DockStationListener

This listener is added to a DockStation. It receives events on adding or removing children of the station, or if the visibility of a child has changed.

Author:
Benjamin Sigg

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.
 

Method Detail

dockableAdding

void dockableAdding(DockStation station,
                    Dockable dockable)
Invoked before dockable is added to station.

Parameters:
station - the station where the new child will be added
dockable - the new child

dockableRemoving

void dockableRemoving(DockStation station,
                      Dockable dockable)
Invoked before dockable is removed from station.

Parameters:
station - the station where the old child will be removed
dockable - the old child

dockableAdded

void dockableAdded(DockStation station,
                   Dockable dockable)
Invoked after dockable has been added to station.

Parameters:
station - the station where the new child was added
dockable - the new child

dockableRemoved

void dockableRemoved(DockStation station,
                     Dockable dockable)
Invoked after dockable has been removed from station.

Parameters:
station - the station where the old child was removed
dockable - the old child

dockableVisibiltySet

void dockableVisibiltySet(DockStation station,
                          Dockable dockable,
                          boolean visible)
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.

Parameters:
station - the station whose children have changed their visibility
dockable - the Dockable whose visibility has changed
visible - the new visibility-state