org.argouml.ui
Class UndoableAction

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by org.argouml.ui.UndoableAction
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action

public abstract class UndoableAction
extends javax.swing.AbstractAction

A base class for all undoable Actions. Any action that acts as the start of a user interaction should extend this and call actionPerformed before calling any mutable undoable methods.

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
UndoableAction()
           
UndoableAction(java.lang.String name)
           
UndoableAction(java.lang.String name, javax.swing.Icon icon)
           
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
           
 
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

UndoableAction

public UndoableAction()

UndoableAction

public UndoableAction(java.lang.String name)

UndoableAction

public UndoableAction(java.lang.String name,
                      javax.swing.Icon icon)
Method Detail

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)


ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook