Class LocationModeAction
java.lang.Object
bibliothek.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.mode.action.LocationModeAction
- All Implemented Interfaces:
SharingDropDownItemAction,SharingStandardDockAction,ButtonDockAction,DockAction,DropDownItemAction,StandardDockAction,StandardDropDownItemAction
- Direct Known Subclasses:
ExternalizedModeAction,MaximizedModeAction,MinimizedModeAction,NormalModeAction
Action for changing the
LocationMode of a Dockable.- Author:
- Benjamin Sigg
-
Field Summary
Fields inherited from interface bibliothek.gui.dock.action.DockAction
BUTTON_CONTENT_FILTER -
Constructor Summary
ConstructorsConstructorDescriptionLocationModeAction(DockController controller, LocationMode mode, String iconKey, String textKey, String tooltipKey, PropertyKey<KeyStroke> gotoStroke) Creates a new action. -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidprotected booleancheckTrigger(KeyEvent event) Checks whether this action is able to trigger this action.protected DockControllerGets the controller from which this action currently reads its content.protected voidsetController(DockController controller) Exchanges all the properties such that they are read fromcontrollerprotected 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
-
Constructor Details
-
LocationModeAction
public LocationModeAction(DockController controller, LocationMode mode, String iconKey, String textKey, String tooltipKey, PropertyKey<KeyStroke> gotoStroke) Creates a new action.- Parameters:
controller- the controller in whose realm this action worksmode- the mode that is applied to anyDockablefor which this button is pressediconKey- the key of an icon to be used on this actiontextKey- the key for the text of this action when searching theTextManagertooltipKey- the key for the tooltip of this action when searching theTextManagergotoStroke- the key for an accelerator which triggers this action
-
-
Method Details
-
action
- Specified by:
actionin interfaceButtonDockAction- Overrides:
actionin classSimpleButtonAction
-
setController
Exchanges all the properties such that they are read fromcontroller- Parameters:
controller- the controller from which to read properties, ornull
-
getController
Gets the controller from which this action currently reads its content.- Returns:
- the controller or
null
-
checkTrigger
Checks whether this action is able to trigger this action.- Parameters:
event- an event that matches the accelerator of this action- Returns:
trueif this action really is triggered
-
bound
- Overrides:
boundin classSimpleDockAction
-
unbound
- Overrides:
unboundin classSimpleDockAction
-