Class MozartUndoManager

java.lang.Object
   |
   +----MozartUndoManager

public class MozartUndoManager
extends Object
implements UndoableEditListener
Application-wide undo manager for Mozart. This class contains everything Mozart needs to use in order to have undo/redo capabilities. It's important to note that the developer must call the instantiated undoManager inorder to get the correct actions.
I.e. mozart.getUndoManager().getUndoAction();

View Source File


Variable Index

 o redoAction
 o undo
 o undoAction

Constructor Index

 o MozartUndoManager()
Creates a new UndoAction, RedoAction and UndoManager

Method Index

 o getRedoAction()
Returns the RedoAction associated with this object.
 o getUndoAction()
Returns the UndoAction associated with this object.
 o undoableEditHappened(UndoableEditEvent)
This method listens for edits that can be undone.

Variables

 o undoAction
 protected MozartUndoManager. UndoAction undoAction
 o redoAction
 protected MozartUndoManager. RedoAction redoAction
 o undo
 protected UndoManager undo

Constructors

 o MozartUndoManager
 public MozartUndoManager()
Creates a new UndoAction, RedoAction and UndoManager

Methods

 o undoableEditHappened
 public void undoableEditHappened(UndoableEditEvent e)
This method listens for edits that can be undone. If the developer makes this class the UndoableEventListener for any new document added to the application, then the undos and redos will be taken care of.

 o getUndoAction
 public Action getUndoAction()
Returns the UndoAction associated with this object.

 o getRedoAction
 public Action getRedoAction()
Returns the RedoAction associated with this object.