bibliothek.gui.dock.station
Class FlapDockStation.VisibleListener

java.lang.Object
  extended by bibliothek.gui.dock.event.DockStationAdapter
      extended by bibliothek.gui.dock.station.FlapDockStation.VisibleListener
All Implemented Interfaces:
DockStationListener
Enclosing class:
FlapDockStation

private class FlapDockStation.VisibleListener
extends DockStationAdapter

This listener is added to the direct parent of the enclosing FlapDockListener. The listener fires events if the visibility changes, and the listener can remove the popup-window if the station looses its visibility.

Author:
Benjamin Sigg

Field Summary
private  boolean visible
          The last known state.
 
Constructor Summary
private FlapDockStation.VisibleListener()
           
 
Method Summary
 void dockableVisibiltySet(DockStation station, Dockable dockable, boolean visible)
          Invoked if the visibility of a child has been changed.
 
Methods inherited from class bibliothek.gui.dock.event.DockStationAdapter
dockableAdded, dockableAdding, dockableRemoved, dockableRemoving
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

visible

private boolean visible
The last known state. Used to react only if real changes happen

Constructor Detail

FlapDockStation.VisibleListener

private FlapDockStation.VisibleListener()
Method Detail

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
Overrides:
dockableVisibiltySet in class DockStationAdapter
Parameters:
station - the station whose children have changed their visibility
dockable - the Dockable whose visibility has changed
visible - the new visibility-state