cdox.gui.action
Class TextAction

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

public class TextAction
extends CDoxAction

Handles everything that goes with text.

Version:
June 12th 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 javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
TextAction(CDoxFrame cF, java.lang.String name, java.lang.String tooltip)
          The TextAction Constructor stores an Image(if available) and a ToolTip(if available).
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ae)
          This method is inherited from Action, it is called when a TextAction has happened in the CDoxFrame.
 
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

TextAction

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

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

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ae)
This method is inherited from Action, it is called when a TextAction has happened in the CDoxFrame. This can be the pressing of a Style button, selecting a new Font or fontSize, or going in or out of textMode. This method checks which Action called this method by checking their name.

Parameters:
ae - The ActionEvent causing this method to be called.