IBM ILOG Dojo Diagrammer 1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.diagram.editor.undo.SimpleAction (version 1.1-SNAPSHOT)

Object » ibm_ilog.diagram.editor.undo.Action » ibm_ilog.diagram.editor.undo.SimpleAction
dojo.require("ibm_ilog.diagram.editor.undo.SimpleAction");

This class is the simple undo action. It is used to undo/redo simple properties that can be changed by setting up a property or calling a method with a simple argument.

Method Summary

  • changeFunction(value)
  • constructor(label) creates a new instance, setting up the label
  • getLabel() return the label. This should be used to be shown in the UI
  • getModifiedElement() gets the modified graph element, looking for its replacements if neccesary
  • getModifiedElementId() sets the modified object
  • getNewValue() gets the new value, cloning the set value if clone function is previously set
  • getOldValue() gets the old value, cloning the set value if clone function is previously set
  • 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
  • setCloneFunction(cloneF) sets the clone function in case the value should be clone before the change action
  • setLabel(label) sets the label that should be used to be shown in the UI
  • setMethodOrProperty(methodOrProperty) sets the property or method name to be modified
  • setModifiedElementId(modifiedElementId) sets the modified object
  • setNewValue(newValue) sets the new value
  • setOldValue(oldValue) sets the old value
  • setUndoManager(undoManager) Sets the undo Manager
  • undo() call the undo function

Methods

changeFunction
ParameterTypeDescription
value
constructor
creates a new instance, setting up the label
ParameterTypeDescription
label
getLabel
return the label. This should be used to be shown in the UI
getModifiedElement
gets the modified graph element, looking for its replacements if neccesary
getModifiedElementId
sets the modified object
getNewValue
gets the new value, cloning the set value if clone function is previously set
getOldValue
gets the old value, cloning the set value if clone function is previously set
getUndoManager
Gets the undo Manager. The UndoManager is set in the Action automatically when it is added to the undo stack
initialize
initialize the action, by setting the undo and redo functions
ParameterTypeDescription
undoFunction
redoFunction
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
setCloneFunction
sets the clone function in case the value should be clone before the change action
ParameterTypeDescription
cloneF
setLabel
sets the label that should be used to be shown in the UI
ParameterTypeDescription
label
setMethodOrProperty
sets the property or method name to be modified
ParameterTypeDescription
methodOrProperty
setModifiedElementId
sets the modified object
ParameterTypeDescription
modifiedElementId
setNewValue
sets the new value
ParameterTypeDescription
newValue
setOldValue
sets the old value
ParameterTypeDescription
oldValue
setUndoManager
Sets the undo Manager
ParameterTypeDescription
undoManager
undo
call the undo function