Class RenameAction
- All Implemented Interfaces:
SharingDropDownItemAction,SharingStandardDockAction,ButtonDockAction,DockAction,DropDownItemAction,StandardDockAction,StandardDropDownItemAction
- Direct Known Subclasses:
RenameAction.RenameDefaultDockable,RenameAction.RenameFlapDockStation,RenameAction.RenameSplitDockStation,RenameAction.RenameStackDockStation
This
RenameActions can be easily created by a
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.RenameActions can be easily created by a
RenameActionFactory- Author:
- Benjamin Sigg
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn implementation ofRenameActionthat can handleDefaultDockables.static classAn implementation ofRenameActionthat can handleFlapDockStations.static classAn implementation ofRenameActionthat can handleSplitDockStations.static classAn implementation ofRenameActionthat can handleStackDockStations. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe key uses for theIconManagerto get theIconof this actionFields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected abstract voidInvoked when the action was triggered, and the user tipped in the new title fordockable.protected voidMethods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction
addActionListener, createView, getCommand, removeActionListener, setCommand, triggerMethods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedMethods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction
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, triggerMethods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface bibliothek.gui.dock.action.DockAction
bind, unbindMethods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerableMethods inherited from interface bibliothek.gui.dock.action.actions.SharingStandardDockAction
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltipMethods inherited from interface bibliothek.gui.dock.action.StandardDockAction
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
-
Field Details
-
KEY_ICON
the key uses for theIconManagerto get theIconof this action- See Also:
-
-
Constructor Details
-
RenameAction
Constructs a new action- Parameters:
controller- The controller to which a listener will be added to get the Icon for this action
-
-
Method Details
-
action
- Specified by:
actionin interfaceButtonDockAction- Overrides:
actionin classSimpleButtonAction
-
bound
- Overrides:
boundin classSimpleDockAction
-
unbound
- Overrides:
unboundin classSimpleDockAction
-
rename
Invoked when the action was triggered, and the user tipped in the new title fordockable.- Parameters:
dockable- TheDockablewhose title should be changedtext- The new title
-