bibliothek.gui.dock.common.intern.action
Class CExtendedModeAction.Action

java.lang.Object
  extended by bibliothek.gui.dock.action.actions.AbstractStandardDockAction
      extended by bibliothek.gui.dock.action.actions.SimpleDockAction
          extended by bibliothek.gui.dock.action.actions.SimpleDropDownItemAction
              extended by bibliothek.gui.dock.action.actions.SimpleButtonAction
                  extended by bibliothek.gui.dock.common.intern.action.CExtendedModeAction.Action
All Implemented Interfaces:
ButtonDockAction, DockAction, DropDownItemAction, StandardDockAction, StandardDropDownItemAction
Enclosing class:
CExtendedModeAction

protected class CExtendedModeAction.Action
extends SimpleButtonAction

The internal representation of a CExtendedModeAction.

Author:
Benjamin Sigg

Constructor Summary
protected CExtendedModeAction.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 trigger(java.awt.event.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.
 
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
 
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

CExtendedModeAction.Action

protected CExtendedModeAction.Action()
Method Detail

trigger

protected boolean trigger(java.awt.event.KeyEvent event,
                          Dockable dockable)
Description copied from class: SimpleDockAction
Called when the user hit the accelerator. This method directly calls trigger( dockable ), subclasses might override this method to further analyze event.

Overrides:
trigger in class SimpleDockAction
Parameters:
event - the triggering event
dockable - the source of the event
Returns:
true if this action could do anything, false if this action was not able to react in any way to the event.

action

public void action(Dockable dockable)
Description copied from interface: ButtonDockAction
Invoked when this action is triggered by the user.

Specified by:
action in interface ButtonDockAction
Overrides:
action in class SimpleButtonAction
Parameters:
dockable - The Dockable which is associated with this DockAction, and which shall be used for the current action.

bound

protected void bound(Dockable dockable)
Description copied from class: AbstractStandardDockAction
Invoked by this AbstractStandardDockAction when a Dockable was bound to this action the first time.

Overrides:
bound in class SimpleDockAction
Parameters:
dockable - The Dockable that was not known to this action before the method was invoked

unbound

protected void unbound(Dockable dockable)
Description copied from class: AbstractStandardDockAction
Called by this 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.

Overrides:
unbound in class SimpleDockAction
Parameters:
dockable - The Dockable which will not by used in any way.