stella.jview
Class TargetAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by stella.jview.TargetAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Direct Known Subclasses:
JTargetHelper.DurationAction, JTargetHelper.FileAction, JTargetHelper.TargetNameAction, JTypeHelper.ConstraintAction, JTypeHelper.DaughterAction, JTypeHelper.ExceptionAction, JTypeHelper.FitsHeaderAction, JTypeHelper.GainAction, JTypeHelper.ObjectAction, JTypeHelper.ProposalAction, JTypeHelper.RequiresAction, JTypeHelper.SetupAction, JTypeHelper.SuccessorAction, JTypeHelper.TimeslotAction

public abstract class TargetAction
extends AbstractAction

A base action object that supports a constructor specifying various action-specific properties.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
protected TargetAction(String name, String command, String accel, char mnemonic, String tip)
          Creates a target action where you can specify the name of the action, the accelerator and mnemonic char, a tool-tip and an action command.
 
Method Summary
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

TargetAction

protected TargetAction(String name,
                       String command,
                       String accel,
                       char mnemonic,
                       String tip)
Creates a target action where you can specify the name of the action, the accelerator and mnemonic char, a tool-tip and an action command. Except for the name, all these properties can be null. The accelerator must be a parsable key-stroke while the mnemonic is considered non-set if zero.

Parameters:
name - The action name used in Action.NAME
command - The action command, used in Action.ACTION_COMMAND_KEY
accel - A string parsable into a keystroke
mnemonic - The mnemonic char, zero means no mnemo
tip - The tool-tip for the action