|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.swing.AbstractAction
com.tensegrity.gui.swing.SwingUtil.ActionCommand
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.
| 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 |
public static final java.lang.String KEYSTROKE_TOOLTIP_KEY
| Method Detail |
public void actionPerformed(java.awt.event.ActionEvent event)
Command.perform(Object) method of the
internal Command instance and passes the given ActionEvent as
parameter.
ActionListener.actionPerformed(java.awt.event.ActionEvent)public boolean isEnabled()
Action.isEnabled()public void setEnabled(boolean newValue)
Action.setEnabled(boolean)public Command getCommand()
Command of this instance.
Command of this instance.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||