@ClientOnly public abstract class RenameAction extends SimpleButtonAction
DockAction
can change the title-text
of a Dockable
. When this action is triggered, a popup menu will appear,
where the user can enter the new title of the Dockable
.RenameActionFactory
Modifier and Type | Class and Description |
---|---|
static class |
RenameAction.RenameDefaultDockable
An implementation of
RenameAction that can handle
DefaultDockables . |
static class |
RenameAction.RenameFlapDockStation
An implementation of
RenameAction that can handle
FlapDockStations . |
static class |
RenameAction.RenameSplitDockStation
An implementation of
RenameAction that can handle
SplitDockStations . |
static class |
RenameAction.RenameStackDockStation
An implementation of
RenameAction that can handle
StackDockStations . |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY_ICON
the key uses for the
IconManager to get the Icon of this action |
BUTTON_CONTENT_FILTER
Constructor and Description |
---|
RenameAction(DockController controller)
Constructs a new action
|
Modifier and Type | Method and Description |
---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user.
|
protected void |
bound(Dockable dockable)
Invoked by this
AbstractStandardDockAction when a Dockable
was bound to this action the first time. |
protected abstract void |
rename(Dockable dockable,
java.lang.String text)
Invoked when the action was triggered, and the user tipped in
the new title for
dockable . |
protected void |
unbound(Dockable dockable)
Called by this
AbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. |
addActionListener, createView, getCommand, removeActionListener, setCommand, trigger
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, trigger
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDropDownSelectable, isDropDownTriggerable
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
bind, unbind
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
public static final java.lang.String KEY_ICON
IconManager
to get the Icon
of this actionpublic RenameAction(DockController controller)
controller
- The controller to which a listener will be added to
get the Icon for this actionpublic void action(Dockable dockable)
ButtonDockAction
action
in interface ButtonDockAction
action
in class SimpleButtonAction
dockable
- The Dockable
which is associated with
this DockAction, and which shall be used for the current action.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.