bibliothek.extension.gui.dock.theme.eclipse.displayer
Class TitleBarObserver

java.lang.Object
  extended by bibliothek.extension.gui.dock.theme.eclipse.displayer.TitleBarObserver

public abstract class TitleBarObserver
extends Object

This class adds an EclipseThemeConnectorListener automatically to the current EclipseThemeConnector and calls invalidated() if the current EclipseThemeConnector.TitleBar for some Dockable does not fit a previously given description.

Author:
Benjamin Sigg

Constructor Summary
TitleBarObserver(DockStation station, Dockable dockable, EclipseThemeConnector.TitleBar titleBar)
          Creates a new observer.
 
Method Summary
 void destroy()
          Disposes this observer, this observer will neither receive nor send events after this method has been called.
protected abstract  void invalidated()
          Called if an invalid EclipseThemeConnector.TitleBar has been chosen, this method is called only once.
 void setController(DockController controller)
          Sets the controller to read the current EclipseThemeConnector.
 void setDockable(Dockable dockable)
          Exchanges the checked dockable, does not trigger invalidated().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TitleBarObserver

public TitleBarObserver(DockStation station,
                        Dockable dockable,
                        EclipseThemeConnector.TitleBar titleBar)
Creates a new observer.

Parameters:
station - the current or future parent of dockable
dockable - the dockable whose EclipseThemeConnector.TitleBar is checked
titleBar - the value that is valid
Method Detail

setDockable

public void setDockable(Dockable dockable)
Exchanges the checked dockable, does not trigger invalidated().

Parameters:
dockable - the new dockable, may be null

setController

public void setController(DockController controller)
Sets the controller to read the current EclipseThemeConnector.

Parameters:
controller - the controller, null is allowed and will not trigger invalidated()

destroy

public void destroy()
Disposes this observer, this observer will neither receive nor send events after this method has been called.


invalidated

protected abstract void invalidated()
Called if an invalid EclipseThemeConnector.TitleBar has been chosen, this method is called only once. This observer is destroy()ed before this method is called.