Class Index | File Index

Classes


Class mindmaps.UndoController


Defined in: UndoController.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
mindmaps.UndoController(eventBus, commandRegistry)
Creates a new UndoController.
Method Summary
Method Attributes Method Name and Description
 
addUndo(undoFunc, redoFunc)
 
Handler for document closed event.
 
Handler for document opened event.
 
Handler for redo command.
 
Handler for undo command.
<private>  
init()
Initialise.
 
Handler for state changed event from undo manager.
Class Detail
mindmaps.UndoController(eventBus, commandRegistry)
Creates a new UndoController. The undo controller manages an instance of UndoManager and delegates all undo and redo commands to the undo manager.
Parameters:
{mindmaps.EventBus} eventBus
{mindmaps.CommandRegistry} commandRegistry
Method Detail
addUndo(undoFunc, redoFunc)
Parameters:
undoFunc
redoFunc
See:
mindmaps.UndoManager#addUndo

documentClosed()
Handler for document closed event.

documentOpened()
Handler for document opened event.

doRedo()
Handler for redo command.

doUndo()
Handler for undo command.

<private> init()
Initialise.

undoStateChanged()
Handler for state changed event from undo manager.

Documentation generated by JsDoc Toolkit 2.4.0 on Mon Jul 18 2011 18:03:15 GMT+0000 (WEST)