org.objectweb.fractal.gui.undo.model
Interface UndoManager

All Known Implementing Classes:
BasicUndoManager

public interface UndoManager

A model for undo and redo.


Method Summary
 boolean canRedo()
          Returns true if there is something that can be redone.
 boolean canUndo()
          Returns true if there is something that can be undone.
 void clear()
          Clears the state of this model.
 void redo()
          Redo the last change that was undone.
 void undo()
          Undo the last change that was made.
 

Method Detail

canUndo

public boolean canUndo()
Returns true if there is something that can be undone.

Returns:
true if there is something that can be undone.

undo

public void undo()
Undo the last change that was made.


canRedo

public boolean canRedo()
Returns true if there is something that can be redone.

Returns:
true if there is something that can be redone.

redo

public void redo()
Redo the last change that was undone.


clear

public void clear()
Clears the state of this model. After a call to this method, canUndo and canRedo return false.