public abstract class TitleBarObserver
extends java.lang.Object
EclipseThemeConnectorListener
automatically
to the current EclipseThemeConnector
and calls invalidated()
if the current EclipseThemeConnector.TitleBar
for some Dockable
does not fit
a previously given description.Constructor and Description |
---|
TitleBarObserver(DockStation station,
Dockable dockable,
EclipseThemeConnector.TitleBar titleBar)
Creates a new observer.
|
Modifier and Type | Method and Description |
---|---|
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() . |
public TitleBarObserver(DockStation station, Dockable dockable, EclipseThemeConnector.TitleBar titleBar)
station
- the current or future parent of dockable
dockable
- the dockable whose EclipseThemeConnector.TitleBar
is checkedtitleBar
- the value that is validpublic void setDockable(Dockable dockable)
invalidated()
.dockable
- the new dockable, may be null
public void setController(DockController controller)
EclipseThemeConnector
.controller
- the controller, null
is allowed
and will not trigger invalidated()
public void destroy()
protected abstract void invalidated()
EclipseThemeConnector.TitleBar
has been chosen, this
method is called only once. This observer is destroy()
ed
before this method is called.