org.acm.seguin.ide.jbuilder
Class UndoAction

java.lang.Object
  extended by org.acm.seguin.ide.common.UndoAdapter
      extended by org.acm.seguin.ide.jbuilder.UndoAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, javax.swing.Action

public class UndoAction
extends UndoAdapter
implements javax.swing.Action

Performs the undo operation

Author:
Chris Seguin

Field Summary
 
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
UndoAction()
          Constructor for the UndoAction object
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a feature to the PropertyChangeListener attribute of the UndoAction object
 java.lang.Object getValue(java.lang.String key)
          Gets the Value attribute of the UndoAction object
 boolean isEnabled()
          Gets the Enabled attribute of the UndoAction object
 void putValue(java.lang.String key, java.lang.Object value)
          Sets the Value attribute of the UndoAction object
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a listener
 void setEnabled(boolean value)
          Sets the Enabled attribute of the UndoAction object
 
Methods inherited from class org.acm.seguin.ide.common.UndoAdapter
actionPerformed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.event.ActionListener
actionPerformed
 

Constructor Detail

UndoAction

public UndoAction()
Constructor for the UndoAction object

Method Detail

setEnabled

public void setEnabled(boolean value)
Sets the Enabled attribute of the UndoAction object

Specified by:
setEnabled in interface javax.swing.Action
Parameters:
value - The new Enabled value

getValue

public java.lang.Object getValue(java.lang.String key)
Gets the Value attribute of the UndoAction object

Specified by:
getValue in interface javax.swing.Action
Parameters:
key - Description of Parameter
Returns:
The Value value

isEnabled

public boolean isEnabled()
Gets the Enabled attribute of the UndoAction object

Specified by:
isEnabled in interface javax.swing.Action
Returns:
The Enabled value

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a feature to the PropertyChangeListener attribute of the UndoAction object

Specified by:
addPropertyChangeListener in interface javax.swing.Action
Parameters:
listener - The feature to be added to the PropertyChangeListener attribute

putValue

public void putValue(java.lang.String key,
                     java.lang.Object value)
Sets the Value attribute of the UndoAction object

Specified by:
putValue in interface javax.swing.Action
Parameters:
key - The new key value
value - The new value value

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener

Specified by:
removePropertyChangeListener in interface javax.swing.Action
Parameters:
listener - the listener to be removed