JET

edu.utep.cs.et.gui.editor
Class DefaultEditor.PasteEnablingAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by 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.


Field Summary
private  Action action
          The delegee action.
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
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
 
Constructor Summary
DefaultEditor.PasteEnablingAction(String name, Icon icon, Action action)
          Creates a new instance by wrapping the given edit action action.
 
Method Summary
 void actionPerformed(ActionEvent e)
          Handles the given action.
 
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

action

private Action action
The delegee action.

Constructor Detail

DefaultEditor.PasteEnablingAction

public DefaultEditor.PasteEnablingAction(String name,
                                         Icon icon,
                                         Action action)
Creates a new instance by wrapping the given edit action action.

Method Detail

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

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.