cdox.gui.action
Class EditAction

java.lang.Object
  extended byjavax.swing.AbstractAction
      extended bycdox.gui.action.CDoxAction
          extended bycdox.gui.action.EditAction
All Implemented Interfaces:
javax.swing.Action, java.awt.event.ActionListener, java.lang.Cloneable, Configurable, java.util.EventListener, java.io.Serializable

public class EditAction
extends CDoxAction

This is an Class is called from CDoxFrame, which handles the EditActions. EditActions are both in the toolBar and in the editMenu "Edit".

Version:
May 16th 2002
Author:
Rutger Bezema, Andreas Schmitz
See Also:
Serialized Form

Field Summary
static DoAction redo
          The current redo action is stored here.
static DoAction undo
          The current undo action is stored here.
 
Fields inherited from class cdox.gui.action.CDoxAction
cFrame, menuItem
 
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
EditAction(CDoxFrame cF, java.lang.String name, java.lang.String tooltip)
          The EditAction Constructor stores an Image(if available) and a ToolTip(if available).
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          This Method handles all the EditActions.
 
Methods inherited from class cdox.gui.action.CDoxAction
configure, setMenuItem
 
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

redo

public static DoAction redo
The current redo action is stored here.


undo

public static DoAction undo
The current undo action is stored here.

Constructor Detail

EditAction

public EditAction(CDoxFrame cF,
                  java.lang.String name,
                  java.lang.String tooltip)
The EditAction Constructor stores an Image(if available) and a ToolTip(if available).

Parameters:
cF - the CDoxFrame.
name - A String representing the EditAction's name.
tooltip - A String representing the EditAction's toolTip.
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
This Method handles all the EditActions. It if's the name of the EditAction.

Parameters:
e - an ActionEvent generated by a pressed toolBar Button or a selected EditmenuItem.