@ClientOnly public class ReplaceAction extends GroupedButtonDockAction<Boolean> implements ListeningDockAction
DockAction that can replace a DockStation by it's only
child. This action is only enabled, if the associated DockStation
has exactly one or zero children. This action can handle only the one
station that was provided through the constructor.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_ICON
the key uses for the
IconManager to get the Icon of this action |
listenersBUTTON_CONTENT_FILTER| Constructor and Description |
|---|
ReplaceAction(DockController controller)
Sets up this action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(Dockable dockable) |
void |
bound(Dockable dockable) |
protected Boolean |
createGroupKey(Dockable dockable) |
void |
setController(DockController controller) |
void |
unbound(Dockable dockable) |
createGroup, createViewisDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerable, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedensureGroup, getAccelerator, getDisabledIcon, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getGenerator, getGroup, getGroup, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, groupExists, isEnabled, isEnabled, isKnown, isRemoveEmptyGroups, removeGroup, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setGenerator, setGroup, setIcon, setIcon, setRemoveEmptyGroups, setText, setTooltip, triggeraddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbind, createView, trigger, unbindisDropDownSelectable, isDropDownTriggerableaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerpublic static final String KEY_ICON
IconManager to get the Icon of this actionpublic ReplaceAction(DockController controller)
controller - The controller for which this action is used. This
action will add some listeners to the controller. To remove those
listeners, call setController(DockController) with a
null argument.protected Boolean createGroupKey(Dockable dockable)
createGroupKey in class GroupedDockAction<Boolean,SimpleButtonAction>public void action(Dockable dockable)
action in interface ButtonDockActionpublic void bound(Dockable dockable)
bound in class GroupedDockAction<Boolean,SimpleButtonAction>public void unbound(Dockable dockable)
unbound in class GroupedDockAction<Boolean,SimpleButtonAction>public void setController(DockController controller)
setController in interface ListeningDockActionCopyright © 2018. All rights reserved.