|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.SimpleDockAction
bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
bibliothek.gui.dock.action.actions.SimpleButtonAction
bibliothek.gui.dock.facile.action.RenameAction
@ClientOnly public abstract class RenameAction
This DockAction
can change the title-text
of a Dockable
. When this action is triggered, a popupmenu will appear,
where the user can enter the new title of the Dockable
.
RenameActions can be easely created by a RenameActionFactory
Nested Class Summary | |
---|---|
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 . |
Field Summary | |
---|---|
static java.lang.String |
KEY_ICON
the key uses for the IconManager to get the Icon of this action |
Constructor Summary | |
---|---|
RenameAction(DockController controller)
Constructs a new action |
Method Summary | |
---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user. |
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 . |
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleButtonAction |
---|
addActionListener, createView, getCommand, removeActionListener, setCommand, trigger |
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDropDownItemAction |
---|
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected |
Methods inherited from class bibliothek.gui.dock.action.actions.SimpleDockAction |
---|
bound, getAccelerator, getDisabledIcon, getDisabledIcon, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setIcon, setText, setTooltip, trigger, unbound |
Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction |
---|
isDropDownSelectable, isDropDownTriggerable |
Field Detail |
---|
public static final java.lang.String KEY_ICON
IconManager
to get the Icon
of this action
Constructor Detail |
---|
public RenameAction(DockController controller)
controller
- The controller to which a listener will be added to
get the Icon for this actionMethod Detail |
---|
public 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 abstract void rename(Dockable dockable, java.lang.String text)
dockable
.
dockable
- The Dockable
whose title should be changedtext
- The new title
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |