Class fvaswing.memento.FvAswingState

Description

State manager for Aswing components.

Use the saveState() method to save component state, and use getState() to retreive specific one.

Also use undo() or redo() methods.

See Also

Method Index

getState(), init(), redo(), saveSate(), undo()

Method Detail

init

static public function init(component:Component, originator:Originator):Boolean

Inits state engine for passed-in component component with originator.

If Originator is null or undefined, use the default FvComponentOriginator

Component state is automatically save for the first time.

Parameters

componentAsWing compoenent to register
originatorOriginator type to manage passed-in component state.

saveSate

static public function saveSate(component:Component):Memento

Saves the state of passed-in component component.

Parameters

componentComponent target

Return

FvComponentMemento state.

See Also

getState

static public function getState(component:Component, memento:Memento):Memento

Retreives ans applies passed-in Memento to component

Parameters

componentComponent target
mementoStage to restore

Return

FvComponentMemento state.

See Also

undo

static public function undo(component:Component):Void

Try an undo operation on component state.

Parameters

componentComponent target

redo

static public function redo(component:Component):Void

Try an redo operation on component state.

Parameters

componentComponent target