|
||||||||||
| 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,
java.lang.String iconKey,
java.lang.String textKey,
java.lang.String tooltipKey,
PropertyKey<javax.swing.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(java.awt.event.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)
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, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setText, setTooltip, trigger |
| Methods inherited from class bibliothek.gui.dock.action.actions.AbstractStandardDockAction |
|---|
addDockActionListener, bind, fireActionDisabledIconChanged, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, 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,
java.lang.String iconKey,
java.lang.String textKey,
java.lang.String tooltipKey,
PropertyKey<javax.swing.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 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.protected void setController(DockController controller)
controller
controller - the controller from which to read properties, or nullprotected DockController getController()
nullprotected boolean checkTrigger(java.awt.event.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 | |||||||||