stella.jview
Class JTargetHelper.TargetNameAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by stella.jview.TargetAction
          extended by stella.jview.JTargetHelper.TargetNameAction
All Implemented Interfaces:
ActionListener, Serializable, Cloneable, EventListener, Action
Enclosing class:
JTargetHelper

public class JTargetHelper.TargetNameAction
extends TargetAction

The action that allows adjustment of the target name. If the main parent is an action listener, this action event is also passed to the action event listener, even without registering.

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
JTargetHelper.TargetNameAction(String name, String command, String accel, String tip)
          Constructs a new constraints action.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          user has pressed the target name button.
 
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
 

Constructor Detail

JTargetHelper.TargetNameAction

public JTargetHelper.TargetNameAction(String name,
                                      String command,
                                      String accel,
                                      String tip)
Constructs a new constraints action. The different constraint are identified with their id.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
user has pressed the target name button. We set the target name in the target helper and change the text on the target button after the user has specified the name in a pop-up dialog We use a resource bundle for proper localisation