com.tensegrity.gui.swing
Class SwingUtil.ActionCommand

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycom.tensegrity.gui.swing.SwingUtil.ActionCommand
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
Direct Known Subclasses:
SwingCommandRegistry.ActionCommand
Enclosing class:
SwingUtil

public static class SwingUtil.ActionCommand
extends javax.swing.AbstractAction

An Action-delegate class. This class delegates all Action related calls to the internal command instance. Use this delegate when creating a Action-triggered GUI-Item like JMenuItem, JMenu, JButton or whatever comes along.

Author:
GillesIachelini
See Also:
Serialized Form

Field Summary
static java.lang.String KEYSTROKE_TOOLTIP_KEY
          Key for storing keystroke infos that can be shown in the tooltip of a button using this action
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
          Invokes the Command.perform(Object) method of the internal Command instance and passes the given ActionEvent as parameter.
 Command getCommand()
          Returns the internal Command of this instance.
 boolean isEnabled()
          Delegates the call to the internal Command instance.
 void setEnabled(boolean newValue)
          Delegates the call to the internal Command instance.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, putValue, removePropertyChangeListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEYSTROKE_TOOLTIP_KEY

public static final java.lang.String KEYSTROKE_TOOLTIP_KEY
Key for storing keystroke infos that can be shown in the tooltip of a button using this action

See Also:
Constant Field Values
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Invokes the Command.perform(Object) method of the internal Command instance and passes the given ActionEvent as parameter.

See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)

isEnabled

public boolean isEnabled()
Delegates the call to the internal Command instance.

See Also:
Action.isEnabled()

setEnabled

public void setEnabled(boolean newValue)
Delegates the call to the internal Command instance.

See Also:
Action.setEnabled(boolean)

getCommand

public Command getCommand()
Returns the internal Command of this instance.

Returns:
the internal Command of this instance.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.