protected class StationChildrenActionSource.FocusAction extends SimpleSelectableAction.Check implements DockableListener
SimpleSelectableAction.Check, SimpleSelectableAction.Radio
Constructor and Description |
---|
StationChildrenActionSource.FocusAction(Dockable dockable)
Creates a new action
|
Modifier and Type | Method and Description |
---|---|
void |
bind(Dockable dockable)
Informs this DockAction that icons, text, and other stuff like that,
will be requested from this DockAction.
|
protected void |
bound(Dockable dockable)
Invoked by this
AbstractStandardDockAction when a Dockable
was bound to this action the first time. |
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)
|
void |
unbind(Dockable dockable)
|
protected void |
unbound(Dockable dockable)
Called by this
AbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. |
trigger
addSelectableListener, createView, fireSelectedChanged, firstNonNull, getDisabledSelectedIcon, getIcon, getIconContexts, getSelectedIcon, getSelectedIcon, isSelected, isSelected, removeSelectableListener, setDisabledSelectedIcon, setSelected, setSelected, setSelectedIcon, setSelectedIcon
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger
addDockActionListener, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
isDropDownSelectable, isDropDownTriggerable
public StationChildrenActionSource.FocusAction(Dockable dockable)
dockable
- the element to observepublic void bind(Dockable dockable)
DockAction
bind
in interface DockAction
bind
in class AbstractStandardDockAction
dockable
- the Dockable
that may be used in the futureDockAction.unbind(Dockable)
public void unbind(Dockable dockable)
DockAction
dockable
was bound
to this DockAction, and if the dockable
will no longer be
used for any method calls (except bind
) on
this DockAction.unbind
in interface DockAction
unbind
in class AbstractStandardDockAction
dockable
- The Dockable
that will never be seen again, except
it is maybe bind
again.protected void bound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when a Dockable
was bound to this action the first time.bound
in class SimpleDockAction
dockable
- The Dockable that was not known to this action
before the method was invokedprotected void unbound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when the Dockable
dockable
will not be used in any means by this
action. Note that the AbstractStandardDockAction.bound(Dockable)
-method can be
invoked again with the dockable
.unbound
in class SimpleDockAction
dockable
- The Dockable which will not by used in any way.public 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 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 titleBound(Dockable dockable, DockTitle title)
DockableListener
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 titleUnbound(Dockable dockable, DockTitle title)
DockableListener
titleUnbound
in interface DockableListener
dockable
- the Dockable
whose title was removedtitle
- the remove title