[]
        
(Showing Draft Content)

Wijmo_Undo.Undoableaction

UndoableAction Class

Base class for undoable actions.

Heirarchy

  • UndoableAction

Constructors

constructor

Properties

target

target: any

Gets a reference to the action's target object.

Methods

addChildAction

  • Adds a child action to this action's child list.

    Parameters

    Returns void

applyState

  • applyState(state: any): void
  • Applies a given state to the target object.

    Parameters

    • state: any

      State to apply to the target object.

    Returns void

close

  • close(): boolean
  • Closes the action by saving the new state. Returns true if the new state is different from the old state.

    Returns boolean

redo

  • redo(): void
  • Redoes the action.

    Returns void

shouldAddAsChildAction

  • Gets a value that determines whether a given action should be added as a child action or as a new independent action.

    Parameters

    Returns boolean

undo

  • undo(): void
  • Undoes the action.

    Returns void