public class CExtendedModeAction.Action extends CommonSimpleButtonAction
CExtendedModeAction
.Constructor and Description |
---|
CExtendedModeAction.Action()
Creates a new action.
|
Modifier and Type | Method and Description |
---|---|
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 |
trigger(KeyEvent event,
Dockable dockable)
Called when the user hit the
accelerator . |
protected void |
unbound(Dockable dockable)
Called by this
AbstractStandardDockAction when the Dockable
dockable will not be used in any means by this
action. |
getAction
addActionListener, createView, getCommand, removeActionListener, setCommand, trigger
isDropDownSelectable, isDropDownSelectable, isDropDownTriggerable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
getAccelerator, getDisabledIcon, getDockableRepresentation, getDockableRepresentation, getIcon, getIcon, getIcon, getIconContexts, getText, getText, getTooltip, getTooltipText, getTooltipText, isEnabled, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
addDockActionListener, bind, fireActionEnabledChanged, fireActionIconChanged, fireActionRepresentativeChanged, fireActionTextChanged, fireActionTooltipTextChanged, getBoundDockables, isBound, removeDockActionListener, unbind
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isDropDownSelectable, isDropDownTriggerableNotSelected, isDropDownTriggerableSelected, setDropDownSelectable, setDropDownTriggerableNotSelected, setDropDownTriggerableSelected
isDropDownSelectable, isDropDownTriggerable
getAccelerator, getDisabledIcon, getDockableRepresentation, getIcon, getIcon, getText, getTooltip, getTooltipText, isEnabled, setAccelerator, setDisabledIcon, setDockableRepresentation, setEnabled, setIcon, setIcon, setText, setTooltip
addDockActionListener, getDockableRepresentation, getIcon, getIconContexts, getText, getTooltipText, isEnabled, removeDockActionListener
public CExtendedModeAction.Action()
protected boolean trigger(KeyEvent event, Dockable dockable)
SimpleDockAction
accelerator
.
This method directly calls trigger( dockable )
, subclasses
might override this method to further analyze event
.trigger
in class SimpleDockAction
event
- the triggering eventdockable
- the source of the eventtrue
if this action could do anything, false
if this action was not able to react in any way to the event.public void action(Dockable dockable)
ButtonDockAction
action
in interface ButtonDockAction
action
in class SimpleButtonAction
dockable
- The Dockable
which is associated with
this DockAction, and which shall be used for the current action.protected void bound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
when a Dockable
was bound to this action the first time.bound
in class SimpleDockAction
dockable
- The Dockable that was not known to this action
before the method was invokedprotected void unbound(Dockable dockable)
AbstractStandardDockAction
AbstractStandardDockAction
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 SimpleDockAction
dockable
- The Dockable which will not by used in any way.