bibliothek.gui.dock.station.flap
Class AbstractFlapLayoutManager

java.lang.Object
  extended by bibliothek.gui.dock.station.flap.AbstractFlapLayoutManager
All Implemented Interfaces:
FlapLayoutManager
Direct Known Subclasses:
CFlapLayoutManager, DefaultFlapLayoutManager

public abstract class AbstractFlapLayoutManager
extends Object
implements FlapLayoutManager

Abstract implementation of FlapLayoutManager, providing support for listeners.

Author:
Benjamin Sigg

Constructor Summary
AbstractFlapLayoutManager()
           
 
Method Summary
 void addListener(FlapLayoutManagerListener listener)
          Adds an observer to this manager, the observer is to be informed if an important property changes.
protected  void fireHoldSwitchableChanged(FlapDockStation station, Dockable dockable)
          Invokes the method FlapLayoutManagerListener.holdSwitchableChanged(FlapLayoutManager, FlapDockStation, Dockable) on all listeners that are currently registered.
 void removeListener(FlapLayoutManagerListener listener)
          Removes the observer listener from this manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface bibliothek.gui.dock.station.flap.FlapLayoutManager
getSize, install, isHold, isHoldSwitchable, setHold, setSize, uninstall
 

Constructor Detail

AbstractFlapLayoutManager

public AbstractFlapLayoutManager()
Method Detail

addListener

public void addListener(FlapLayoutManagerListener listener)
Description copied from interface: FlapLayoutManager
Adds an observer to this manager, the observer is to be informed if an important property changes.

Specified by:
addListener in interface FlapLayoutManager
Parameters:
listener - the new observer, not null

removeListener

public void removeListener(FlapLayoutManagerListener listener)
Description copied from interface: FlapLayoutManager
Removes the observer listener from this manager.

Specified by:
removeListener in interface FlapLayoutManager
Parameters:
listener - the observer to remove

fireHoldSwitchableChanged

protected void fireHoldSwitchableChanged(FlapDockStation station,
                                         Dockable dockable)
Invokes the method FlapLayoutManagerListener.holdSwitchableChanged(FlapLayoutManager, FlapDockStation, Dockable) on all listeners that are currently registered.

Parameters:
station - the station to which the event belongs or null
dockable - the affected dockable or null