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.
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.
component | AsWing compoenent to register |
originator | Originator type to manage passed-in component state. |
static public function saveSate(component:Component):Memento
Saves the state of passed-in component component.
component | Component target |
FvComponentMemento state.
static public function getState(component:Component, memento:Memento):Memento
Retreives ans applies passed-in Memento
to component
component | Component target |
memento | Stage to restore |
FvComponentMemento state.