@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 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) |
protected void |
bound(Dockable dockable) |
protected abstract void |
rename(Dockable dockable,
String text)
Invoked when the action was triggered, and the user tipped in
the new title for
dockable. |
protected void |
unbound(Dockable dockable) |
addActionListener, createView, getCommand, removeActionListener, setCommand, triggerisDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedgetAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, triggeraddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDropDownSelectable, isDropDownTriggerableaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, unbindgetAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltippublic static final 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)
action in interface ButtonDockActionaction in class SimpleButtonActionprotected void bound(Dockable dockable)
bound in class SimpleDockActionprotected void unbound(Dockable dockable)
unbound in class SimpleDockActionCopyright © 2018. All rights reserved.