edu.utep.cs.et.gui.editor
Class DefaultEditor.PasteEnablingAction
java.lang.Object
javax.swing.AbstractAction
edu.utep.cs.et.gui.editor.DefaultEditor.PasteEnablingAction
- All Implemented Interfaces:
- ActionListener, Serializable, Cloneable, EventListener, Action
- Enclosing class:
- DefaultEditor
private static class DefaultEditor.PasteEnablingAction
- extends AbstractAction
An action class to represent editing actions that enable the
paste action. This is a wrapper (or declarator) class that
delegates its action to some edit action and then enables the
paste edit action.
| 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 |
action
private Action action
- The delegee action.
DefaultEditor.PasteEnablingAction
public DefaultEditor.PasteEnablingAction(String name,
Icon icon,
Action action)
- Creates a new instance by wrapping the given edit action
action.
actionPerformed
public void actionPerformed(ActionEvent e)
- Handles the given action. The action is delegated to the
action
action and the paste action is
enabled.
JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.