cdox.gui.action
Class FileAction

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

public class FileAction
extends CDoxAction
implements CDCoverStandards

This Class handles the FileActions. FileActions are both in the toolBar and in the FileMenu "File".

Version:
July 17th 2002
Author:
Rutger Bezema, Andreas Schmitz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class cdox.gui.action.CDoxAction
cFrame, menuItem
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface cdox.edit.CDCoverStandards
ALL, CDBACK_SIDE, CDBACK_SIDE_SIZE, CDBACK_SIZE, CDBOOKLET, CDBOOKLET_SIZE, CDFRONT, CDFRONT_SIZE, CDSIDE_SIZE, CDX, GIF, JPG, PNG
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
FileAction(CDoxFrame cF, java.lang.String name, java.lang.String tooltip)
          The FileAction 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 FileActions.
 
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
 

Constructor Detail

FileAction

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

Parameters:
cF - the CDoxFrame calling this ActionClass
name - A String representing the FileAction's name
tooltip - A String representing the FileAction's toolTip
Method Detail

actionPerformed

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

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - an ActionEvent generated by a pressed toolBar Button or a selected FilemenuItem.