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
-
redoAction
-
-
undo
-
-
undoAction
-
-
MozartUndoManager()
- Creates a new UndoAction, RedoAction and UndoManager
-
getRedoAction()
- Returns the RedoAction associated with this object.
-
getUndoAction()
- Returns the UndoAction associated with this object.
-
undoableEditHappened(UndoableEditEvent)
- This method listens for edits that can be undone.
undoAction
protected MozartUndoManager. UndoAction undoAction
redoAction
protected MozartUndoManager. RedoAction redoAction
undo
protected UndoManager undo
MozartUndoManager
public MozartUndoManager()
- Creates a new UndoAction, RedoAction and UndoManager
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.
getUndoAction
public Action getUndoAction()
- Returns the UndoAction associated with this object.
getRedoAction
public Action getRedoAction()
- Returns the RedoAction associated with this object.