Class Index

Classes


Class $.wijmo.wijspread.UndoRedo.ActionBase

Class Summary
Constructor Attributes Constructor Name and Description
 
Represents the actions in the component for which the user can perform an undo or redo.
Method Summary
Method Attributes Method Name and Description
 
Defines the method that determines whether the action can be performed in its current state.
 
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.

©2013. ComponentOne, a division of GrapeCity. All Rights Reserved.