|
||||||||||
| 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.mode.action.LocationModeAction
public class LocationModeAction
Action for changing the LocationMode of a Dockable.
| Constructor Summary | |
|---|---|
LocationModeAction(DockController controller,
LocationMode mode,
String defaultIconKey,
String iconKey,
PropertyKey<KeyStroke> gotoStroke)
Creates a new action. |
|
| Method Summary | |
|---|---|
void |
action(Dockable dockable)
Invoked when this action is triggered by the user. |
protected void |
bound(Dockable dockable)
Invoked by this AbstractStandardDockAction when a Dockable
was bound to this action the first time. |
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 |
void |
setIcon(Icon icon)
Sets the default- icon for this action. |
protected void |
unbound(Dockable dockable)
Called by this AbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. |
| 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 |
|---|
getAccelerator, getDisabledIcon, getDisabledIcon, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setEnabled, setText, setTooltip, trigger |
| 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 |
| Constructor Detail |
|---|
public LocationModeAction(DockController controller,
LocationMode mode,
String defaultIconKey,
String iconKey,
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 presseddefaultIconKey - the default key of the icon, this icon is used if setIcon(Icon) is called with null
or if iconKey does not lead to an iconiconKey - the key of an icon to be used on this actiongotoStroke - the key for an accelerator which triggers this action| Method Detail |
|---|
public void action(Dockable dockable)
ButtonDockAction
action in interface ButtonDockActionaction in class SimpleButtonActiondockable - The Dockable which is associated with
this DockAction, and which shall be used for the current action.public void setIcon(Icon icon)
SimpleDockActionicon for this action. This icon
will be shown when no other icon fits the current states of
the action.
setIcon in class SimpleDockActionicon - The icon, can be nullprotected void setController(DockController controller)
controller
controller - 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 action
true if this action really is triggeredprotected void bound(Dockable dockable)
AbstractStandardDockActionAbstractStandardDockAction when a Dockable
was bound to this action the first time.
bound in class SimpleDockActiondockable - The Dockable that was not known to this action
before the method was invokedprotected void unbound(Dockable dockable)
AbstractStandardDockActionAbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. Note that the AbstractStandardDockAction.bound(Dockable)-method can be
invoked again with the dockable.
unbound in class SimpleDockActiondockable - The Dockable which will not by used in any way.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||