javoids
Class ActionHandler
java.lang.Object
javax.swing.AbstractAction
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 |
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
ActionHandler
public ActionHandler(Javoids _javoids,
java.lang.String name,
javax.swing.KeyStroke keyStroke)
- Parameters:
_javoids
- the list of all javoidsname
- the name of the action to be performedkeyStroke
- the keystroke that goes with the action
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
- Create a new game.
- Parameters:
actionEvent
- the action event to handle