org.xmlhammer.gui.actions
Class UndoAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.bounce.RunnableAction
          extended by org.xmlhammer.gui.actions.UndoAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.lang.Runnable, java.util.EventListener, javax.swing.Action, javax.swing.event.ChangeListener

public class UndoAction
extends org.bounce.RunnableAction
implements javax.swing.event.ChangeListener

An action that can be used to undo edits.

Version:
$Revision: 1.9 $, $Date: 2007/07/04 19:42:49 $
Author:
Edwin Dankert
See Also:
Serialized Form

Field Summary
 
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
UndoAction()
           
 
Method Summary
 void run()
          The implementation of the undo action, called after a user action.
 void setView(ProjectView view)
           
 void stateChanged(javax.swing.event.ChangeEvent event)
           
 
Methods inherited from class org.bounce.RunnableAction
actionPerformed
 
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

UndoAction

public UndoAction()
Parameters:
parent - the XMLHammer parent.
Method Detail

setView

public void setView(ProjectView view)

run

public void run()
The implementation of the undo action, called after a user action.

Specified by:
run in interface java.lang.Runnable
Specified by:
run in class org.bounce.RunnableAction

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent event)
Specified by:
stateChanged in interface javax.swing.event.ChangeListener


Copyright 2005-2005-2008 Edwin Dankert. All Rights Reserved.