Class $.wijmo.wijspread.UndoRedo.ActionBase
Constructor Attributes | Constructor Name and Description |
---|---|
Represents the actions in the component for which the user can perform an undo or redo.
|
Method Attributes | Method Name and Description |
---|---|
canExecute(arg)
Defines the method that determines whether the action can be performed in its current state.
|
|
canUndo()
Gets a value that indicates whether the command or operation can be undone.
|
|
execute(arg)
Defines the method to be called when the action is invoked.
|
|
Saves the state for undoing the command or operation.
|
|
undo(arg)
Undoes the command or operation.
|
Class Detail
$.wijmo.wijspread.UndoRedo.ActionBase()
Represents the actions in the component for which the user can perform an undo or redo.
Method Detail
{boolean}
canExecute(arg)
Defines the method that determines whether the action can be performed in its current state.
- Parameters:
- {object} arg
- Data used by the action. If the action does not require data to be passed, this object can be set to null.
- Returns:
- {boolean} true if this action can be performed; otherwise, false.
{boolean}
canUndo()
Gets a value that indicates whether the command or operation can be undone.
- Returns:
- {boolean} true if this action can be undone; otherwise, false.
execute(arg)
Defines the method to be called when the action is invoked.
- Parameters:
- {object} arg
- Data used by the action. If the action does not require data to be passed, this object can be set to null.
saveState()
Saves the state for undoing the command or operation.
{boolean}
undo(arg)
Undoes the command or operation.
- Parameters:
- {object} arg
- The parameter to undo the command or operation.
- Returns:
- {boolean} true if an undo operation on the command or operation succeeds; otherwise, false.