|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object bibliothek.gui.dock.station.flap.button.AbstractButtonContentCondition
public abstract class AbstractButtonContentCondition
This abstract implementation of a ButtonContentCondition
adds itself as DockableListener
to any
Dockable
that is installed. Subclasses may override the methods of the DockableListener
and
react on changes (the default behavior is always to do nothing).
Constructor Summary | |
---|---|
AbstractButtonContentCondition()
|
Method Summary | |
---|---|
protected void |
fire(Dockable dockable)
Calls the method ButtonContent.handleChange(Dockable) on all ButtonContent s that are
currently using this ButtonContentCondition that that have installed dockable . |
protected void |
install(Dockable dockable)
Called when dockable has to be observered. |
void |
install(Dockable dockable,
ButtonContent content)
Informs this ButtonContentCondition that dockable has to be monitored
for changes. |
void |
titleBound(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was bound
to a Dockable . |
void |
titleExchanged(Dockable dockable,
DockTitle title)
Invoked when the properties of a Dockable have a so dramatically
changed, that the DockTitle title is no longer
considered a good title and should be replaced. |
void |
titleIconChanged(Dockable dockable,
Icon oldIcon,
Icon newIcon)
Invoked when the title-icon of a Dockable has changed |
void |
titleTextChanged(Dockable dockable,
String oldTitle,
String newTitle)
Invoked when the title of a Dockable has changed. |
void |
titleToolTipChanged(Dockable dockable,
String oldToolTip,
String newToolTip)
Called when the tooltip of a Dockable changed. |
void |
titleUnbound(Dockable dockable,
DockTitle title)
Will be invoked when a DockTitle was unbound
from a Dockable . |
protected void |
uninstall(Dockable dockable)
Called when dockable no longer has to be observed. |
void |
uninstall(Dockable dockable,
ButtonContent content)
Informs this ButtonContentCondition that dockable no longer has to
be monitored |
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.button.ButtonContentCondition |
---|
shouldShow |
Constructor Detail |
---|
public AbstractButtonContentCondition()
Method Detail |
---|
public void install(Dockable dockable, ButtonContent content)
ButtonContentCondition
ButtonContentCondition
that dockable
has to be monitored
for changes.
install
in interface ButtonContentCondition
dockable
- the element to monitorcontent
- the ButtonContent
which is using this condition and whose method
ButtonContent.handleChange(Dockable)
should be called if this condition changes
its value for dockable
public void uninstall(Dockable dockable, ButtonContent content)
ButtonContentCondition
ButtonContentCondition
that dockable
no longer has to
be monitored
uninstall
in interface ButtonContentCondition
dockable
- the element that no longer has to be monitoredcontent
- the ButtonContent
which was using this conditionprotected void fire(Dockable dockable)
ButtonContent.handleChange(Dockable)
on all ButtonContent
s that are
currently using this ButtonContentCondition
that that have installed dockable
.
dockable
- the element whose properties have changedprotected void install(Dockable dockable)
dockable
has to be observered.
dockable
- the element to observeprotected void uninstall(Dockable dockable)
dockable
no longer has to be observed.
dockable
- the element that no longer needs to be osbservedpublic void titleBound(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was bound
to a Dockable
.
titleBound
in interface DockableListener
dockable
- the Dockable
whose title is settitle
- the new titlepublic void titleExchanged(Dockable dockable, DockTitle title)
DockableListener
Dockable
have a so dramatically
changed, that the DockTitle
title
is no longer
considered a good title and should be replaced. The one element which shows
title
should unbind it, and request a new title.
titleExchanged
in interface DockableListener
dockable
- the source of the eventtitle
- the title that should be discarded, can be null
to alert elements which do show the null
-titlepublic void titleIconChanged(Dockable dockable, Icon oldIcon, Icon newIcon)
DockableListener
Dockable
has changed
titleIconChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldIcon
- the old icon, may be null
newIcon
- the new icon, may be null
public void titleTextChanged(Dockable dockable, String oldTitle, String newTitle)
DockableListener
Dockable
has changed.
titleTextChanged
in interface DockableListener
dockable
- the Dockable
whose title is changedoldTitle
- the title before the changenewTitle
- the title after the changepublic void titleToolTipChanged(Dockable dockable, String oldToolTip, String newToolTip)
DockableListener
Dockable
changed.
titleToolTipChanged
in interface DockableListener
dockable
- the dockable whose tooltip changedoldToolTip
- the old valuenewToolTip
- the new valuepublic void titleUnbound(Dockable dockable, DockTitle title)
DockableListener
DockTitle
was unbound
from a Dockable
.
titleUnbound
in interface DockableListener
dockable
- the Dockable
whose title was removedtitle
- the remove title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |