Class ReplaceAction
java.lang.Object
bibliothek.gui.dock.action.actions.AbstractStandardDockAction
bibliothek.gui.dock.action.actions.GroupedDockAction<K,D>
bibliothek.gui.dock.action.actions.GroupedDropDownItemAction<K,SimpleButtonAction>
bibliothek.gui.dock.action.actions.GroupedButtonDockAction<Boolean>
bibliothek.gui.dock.facile.action.ReplaceAction
- All Implemented Interfaces:
ButtonDockAction,DockAction,DropDownItemAction,ListeningDockAction,StandardDockAction,StandardDropDownItemAction
@ClientOnly
public class ReplaceAction
extends GroupedButtonDockAction<Boolean>
implements ListeningDockAction
A
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.- Author:
- Benjamin Sigg
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe key uses for theIconManagerto get theIconof this actionFields inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction
listenersFields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidprotected BooleancreateGroupKey(Dockable dockable) voidsetController(DockController controller) voidMethods inherited from class bibliothek.gui.dock.action.actions.GroupedButtonDockAction
createGroup, createViewMethods inherited from class bibliothek.gui.dock.action.actions.GroupedDropDownItemAction
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerable, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedMethods inherited from class bibliothek.gui.dock.action.actions.GroupedDockAction
ensureGroup, 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, 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, createView, trigger, unbindMethods inherited from interface bibliothek.gui.dock.action.dropdown.DropDownItemAction
isDropDownSelectable, isDropDownTriggerableMethods 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
-
ReplaceAction
Sets up this action.- Parameters:
controller- The controller for which this action is used. This action will add some listeners to the controller. To remove those listeners, callsetController(DockController)with anullargument.
-
-
Method Details
-
createGroupKey
- Overrides:
createGroupKeyin classGroupedDockAction<Boolean,SimpleButtonAction>
-
action
- Specified by:
actionin interfaceButtonDockAction
-
bound
- Overrides:
boundin classGroupedDockAction<Boolean,SimpleButtonAction>
-
unbound
- Overrides:
unboundin classGroupedDockAction<Boolean,SimpleButtonAction>
-
setController
- Specified by:
setControllerin interfaceListeningDockAction
-