mars.venus
Class FileNewAction
java.lang.Object
|
+--javax.swing.AbstractAction
|
+--mars.venus.GuiAction
|
+--mars.venus.FileNewAction
- All Implemented Interfaces:
- javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, java.util.EventListener, java.io.Serializable
- public class FileNewAction
- extends GuiAction
Action for the File -> New menu item
- See Also:
- Serialized Form
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 |
FileNewAction(java.lang.String name,
javax.swing.Icon icon,
java.lang.String descrip,
java.lang.Integer mnemonic,
javax.swing.KeyStroke accel,
VenusUI gui)
|
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Code to create a new document. |
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 |
FileNewAction
public FileNewAction(java.lang.String name,
javax.swing.Icon icon,
java.lang.String descrip,
java.lang.Integer mnemonic,
javax.swing.KeyStroke accel,
VenusUI gui)
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Code to create a new document. It clears the source code window.
- Specified by:
actionPerformed
in interface java.awt.event.ActionListener
- Overrides:
actionPerformed
in class GuiAction
- Parameters:
e
- component triggering this call