tico.interpreter.actions
Class TInterpreterAbstractAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by tico.interpreter.actions.TInterpreterAbstractAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
TInterpreterEditOptions, TInterpreterExitAction, TInterpreterHomeAction, TInterpreterLanguajes, TInterpreterProjectOpenAction, TInterpreterReadAction, TInterpreterReturnAction, TInterpreterRun, TInterpreterShowAbout, TInterpreterStopAction, TInterpreterUndoAction, TInterpreterUndoAllAction, TInterpreterValidationAction

public abstract class TInterpreterAbstractAction
extends javax.swing.AbstractAction

An abstract TInterpreter action. The base class for all TInterpreter actions.

Author:
Antonio Rodriguez
See Also:
Serialized Form

Field Summary
 
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
TInterpreterAbstractAction()
          Constructor for TInterpreterAbstractAction.
TInterpreterAbstractAction(java.lang.String name)
          Constructor for TInterpreterAbstractAction.
TInterpreterAbstractAction(TInterpreter interpreter)
          Constructor for TInterpreterAbstractAction.
TInterpreterAbstractAction(TInterpreter interpreter, java.lang.String name)
          Constructor for TInterpreterAbstractAction.
TInterpreterAbstractAction(TInterpreter interpreter, java.lang.String name, javax.swing.Icon icon)
          Constructor for TInterpreterAbstractAction.
 
Method Summary
 TInterpreter getInterpreter()
          Returns the TInterpreter.
 void setInterpreter(TInterpreter interpreter)
          Sets the TInterpreter.
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

TInterpreterAbstractAction

public TInterpreterAbstractAction()
Constructor for TInterpreterAbstractAction. The Abstract action uses the class name without package prefix as action name.

See Also:
Action.NAME

TInterpreterAbstractAction

public TInterpreterAbstractAction(TInterpreter interpreter)
Constructor for TInterpreterAbstractAction. The Abstract action uses the class name without package prefix as action name.

Parameters:
interpreter - The reference to the TInterpreter for this action
See Also:
Action.NAME

TInterpreterAbstractAction

public TInterpreterAbstractAction(java.lang.String name)
Constructor for TInterpreterAbstractAction.

Parameters:
name - Key for the name of this action

TInterpreterAbstractAction

public TInterpreterAbstractAction(TInterpreter interpreter,
                                  java.lang.String name)
Constructor for TInterpreterAbstractAction.

Parameters:
interpreter - The reference to the TInterpreter for this action
name - Key for the name of this action

TInterpreterAbstractAction

public TInterpreterAbstractAction(TInterpreter interpreter,
                                  java.lang.String name,
                                  javax.swing.Icon icon)
Constructor for TInterpreterAbstractAction.

Parameters:
interpreter - The reference to the TInterpreter for this action
name - Key for the name of the action
icon - The icon for this action
Method Detail

setInterpreter

public void setInterpreter(TInterpreter interpreter)
Sets the TInterpreter.

Parameters:
interpreter - The TInterpreter to set

getInterpreter

public TInterpreter getInterpreter()
Returns the TInterpreter.

Returns:
TInterpreter