public class LocationModeAction extends SimpleButtonAction
LocationMode of a Dockable.BUTTON_CONTENT_FILTER| Constructor and Description |
|---|
LocationModeAction(DockController controller,
LocationMode mode,
String iconKey,
String textKey,
String tooltipKey,
PropertyKey<KeyStroke> gotoStroke)
Creates a new action.
|
| Modifier and Type | Method and Description |
|---|---|
void |
action(Dockable dockable) |
protected void |
bound(Dockable dockable) |
protected boolean |
checkTrigger(KeyEvent event)
Checks whether this action is able to trigger this action.
|
protected DockController |
getController()
Gets the controller from which this action currently reads its content.
|
protected void |
setController(DockController controller)
Exchanges all the properties such that they are read from
controller |
protected void |
unbound(Dockable dockable) |
addActionListener, createView, getCommand, removeActionListener, setCommand, triggerisDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelectedgetAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isAcceleratorGlobal, isEnabled, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip, triggeraddDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbindclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisDropDownSelectable, isDropDownTriggerableaddDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListenerbind, unbindgetAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isAcceleratorGlobal, isEnabled, setAccelerator, setAcceleratorIsGlobal, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltippublic LocationModeAction(DockController controller, LocationMode mode, String iconKey, String textKey, String tooltipKey, PropertyKey<KeyStroke> gotoStroke)
controller - the controller in whose realm this action worksmode - the mode that is applied to any Dockable for 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 the TextManagertooltipKey - the key for the tooltip of this action when searching the TextManagergotoStroke - the key for an accelerator which triggers this actionpublic void action(Dockable dockable)
action in interface ButtonDockActionaction in class SimpleButtonActionprotected void setController(DockController controller)
controllercontroller - the controller from which to read properties, or nullprotected DockController getController()
nullprotected boolean checkTrigger(KeyEvent event)
event - an event that matches the accelerator of this actiontrue if this action really is triggeredprotected void bound(Dockable dockable)
bound in class SimpleDockActionprotected void unbound(Dockable dockable)
unbound in class SimpleDockActionCopyright © 2018. All rights reserved.