javoids
Class ActionHandler

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by javoids.ActionHandler
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

 class ActionHandler
extends javax.swing.AbstractAction

A class for handling actions.

Author:
mallette

Field Summary
private  Javoids javoids
          the javoids game
private static long serialVersionUID
          This is the version used for serializing/deserializing (storing/retrieving) this object
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
ActionHandler(Javoids _javoids, java.lang.String name, javax.swing.KeyStroke keyStroke)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent actionEvent)
          Create a new game.
 
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
 

Field Detail

serialVersionUID

private static final long serialVersionUID
This is the version used for serializing/deserializing (storing/retrieving) this object

See Also:
Constant Field Values

javoids

private Javoids javoids
the javoids game

Constructor Detail

ActionHandler

public ActionHandler(Javoids _javoids,
                     java.lang.String name,
                     javax.swing.KeyStroke keyStroke)
Parameters:
_javoids - the list of all javoids
name - the name of the action to be performed
keyStroke - the keystroke that goes with the action
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent actionEvent)
Create a new game.

Parameters:
actionEvent - the action event to handle