org.argouml.model
Class ModelMemento

java.lang.Object
  extended by org.argouml.model.ModelMemento
Direct Known Subclasses:
DummyModelMemento

public abstract class ModelMemento
extends java.lang.Object

A memento to record the state of an object before an undoable change.

The model implementation should create a ModelMemento for any undoable operation performed. Any mutator method should normally be undoable except loading a model from file.


Constructor Summary
ModelMemento()
           
 
Method Summary
 void dispose()
          Dispose of any resources used by this memento before it is destroyed.
abstract  void redo()
          The method to redo this memento once undone.
abstract  void undo()
          The method to undo this memento.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelMemento

public ModelMemento()
Method Detail

undo

public abstract void undo()
The method to undo this memento.


redo

public abstract void redo()
The method to redo this memento once undone.


dispose

public void dispose()
Dispose of any resources used by this memento before it is destroyed. A memento is destroyed when it is forced off the end of the undo or redo stack when that stack has reached its maximum size or when the stack is emptied.



ArgoUML © 1996-2006ArgoUML HomepageArgoUML Cookbook