ibm_ilog.diagram.editor.undo.Action
Object » ibm_ilog.diagram.editor.undo.Action
dojo.require("ibm_ilog.diagram.editor.undo.Action");
this is the base Undo action. This contains the base components to apply all undo/redo actions on the UndoManager. Any Undo Action should inherit from this class
Method Summary
- constructor(label) creates a new instance, setting up the label
- getLabel() return the label. This should be used to be shown in the UI
- getUndoManager() Gets the undo Manager. The UndoManager is set in the Action automatically when it is added to the undo stack
- initialize(undoFunction, redoFunction) initialize the action, by setting the undo and redo functions
- isRedoing() return true if the action is executing a redo action
- isUndoing() return true if the action is executing an undo action
- redo() call the redo function
- setLabel(label) sets the label that should be used to be shown in the UI
- setUndoManager(undoManager) Sets the undo Manager
- undo() call the undo function
Methods
Gets the undo Manager. The UndoManager is set in the Action automatically when it is added to the undo stack
initialize the action, by setting the undo and redo functions
Parameter | Type | Description |
---|---|---|
undoFunction | ||
redoFunction |