stella.jview
Class JTypeHelper.RequiresAction

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

public class JTypeHelper.RequiresAction
extends TargetAction

The action that allows input of a requirement.

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
JTypeHelper.RequiresAction(String name, String accel, String tip)
          Constructs a new requires action for entering the target requirement.
 
Method Summary
 void actionPerformed(ActionEvent ae)
          The requirement should be a parsable boolean expression at run-time.
 
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

JTypeHelper.RequiresAction

public JTypeHelper.RequiresAction(String name,
                                  String accel,
                                  String tip)
Constructs a new requires action for entering the target requirement.

Method Detail

actionPerformed

public void actionPerformed(ActionEvent ae)
The requirement should be a parsable boolean expression at run-time. There is no possibility to check the validity here. Setting a requirement is only possible if the type has been specified. We ask for a string here.