public abstract class DockableAdapter extends Object implements DockableListener
DockableListener
. All
methods in this class are empty. The class can be used instead of
DockableListener
, and only a few selected methods have to
be implemented again.Constructor and Description |
---|
DockableAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
titleBound(Dockable dockable,
DockTitle title)
|
void |
titleExchanged(Dockable dockable,
DockTitle title)
|
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)
|
public void titleBound(Dockable dockable, DockTitle title)
DockableListener
titleBound
in interface DockableListener
dockable
- the Dockable
whose title is settitle
- the new titlepublic void titleUnbound(Dockable dockable, DockTitle title)
DockableListener
titleUnbound
in interface DockableListener
dockable
- the Dockable
whose title was removedtitle
- the remove titlepublic 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 titleIconChanged(Dockable dockable, Icon oldIcon, Icon newIcon)
DockableListener
Dockable
has changedtitleIconChanged
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 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
-title