edu.princeton.toy
Class TFrame.TFrameAction
java.lang.Object
javax.swing.AbstractAction
edu.princeton.swing.AbstractAction2
edu.princeton.toy.TFrame.TFrameAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- TFrame
protected class TFrame.TFrameAction
- extends AbstractAction2
TFrameAction is a generalizable action for the TFrame; basically, it relays all ActionEvents
to the doCommand() method.
- See Also:
- Serialized Form
Fields inherited from interface javax.swing.Action |
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON |
Methods inherited from class edu.princeton.swing.AbstractAction2 |
createMenuItem, getAccelerator, getActionCommand, getExtraInfo, getLongDescription, getMnemonic, getName, getShortDescription, getSmallIcon, setAccelerator, setActionCommand, setExtraInfo, setLongDescription, setMnemonic, setName, setShortDescription, setSmallIcon |
TFrame.TFrameAction
protected TFrame.TFrameAction(String name,
Icon icon,
int mnemonic,
KeyStroke accelerator,
String command)
- Creates a new TFrameAction.
TFrame.TFrameAction
protected TFrame.TFrameAction(String name,
Icon icon,
int mnemonic,
KeyStroke accelerator,
String command,
Object extraInfo)
- Creates a new TFrameAction.
actionPerformed
public void actionPerformed(ActionEvent e)
- Implements ActionListener to perform the redo operation.