edu.toronto.cs.util
Class UserActElement

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by edu.toronto.cs.util.UserActElement
All Implemented Interfaces:
UserActChain, java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action
Direct Known Subclasses:
FinalUserActElement, UserActionAdapter

public abstract class UserActElement
extends javax.swing.AbstractAction
implements UserActChain

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
UserActElement()
           
UserActElement(boolean imm, boolean autor)
           
UserActElement(java.lang.String _name)
           
UserActElement(java.lang.String _name, boolean imm, boolean autor)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 UserActChain add(UserActChain a)
           
 boolean confirm()
           
 boolean confirm(UserAct stateinfo)
           
abstract  boolean doConfirm(UserAct stateinfo)
           
 boolean doExecute(UserAct stateinfo)
           
protected  void errorHandle(UserAct u)
           
 boolean execute(UserAct stateinfo)
           
 UserActChain get(int i)
           
 UserActChain get(int i, int l)
           
 java.lang.String getName()
           
 boolean immanent()
           
 int length()
           
 int length(int i)
           
 void reset()
           
 int stage()
           
 int stage(int i)
           
 
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 javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

UserActElement

public UserActElement(java.lang.String _name)

UserActElement

public UserActElement(java.lang.String _name,
                      boolean imm,
                      boolean autor)

UserActElement

public UserActElement(boolean imm,
                      boolean autor)

UserActElement

public UserActElement()
Method Detail

add

public UserActChain add(UserActChain a)
Specified by:
add in interface UserActChain

reset

public void reset()
Specified by:
reset in interface UserActChain

confirm

public boolean confirm(UserAct stateinfo)
Specified by:
confirm in interface UserActChain

confirm

public boolean confirm()
Specified by:
confirm in interface UserActChain

doConfirm

public abstract boolean doConfirm(UserAct stateinfo)

execute

public boolean execute(UserAct stateinfo)
Specified by:
execute in interface UserActChain

doExecute

public boolean doExecute(UserAct stateinfo)

get

public UserActChain get(int i)
Specified by:
get in interface UserActChain

get

public UserActChain get(int i,
                        int l)
Specified by:
get in interface UserActChain

length

public int length()
Specified by:
length in interface UserActChain

length

public int length(int i)
Specified by:
length in interface UserActChain

stage

public int stage()
Specified by:
stage in interface UserActChain

stage

public int stage(int i)
Specified by:
stage in interface UserActChain

immanent

public boolean immanent()
Specified by:
immanent in interface UserActChain

getName

public java.lang.String getName()

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

errorHandle

protected void errorHandle(UserAct u)