Packageflexlib.containers
Classpublic class AdvancedForm
InheritanceAdvancedForm Inheritance mx.containers.Form

The Advanced Form component provides Reset, Undo and Redo functionality.

The Advanced Form component provides Reset, Undo and Redo functionality. Undo and Redo are accessed by pressing "ctrl-Z" and "ctrl-Y" repsectively.

MXML Syntaxexpanded Hide MXML Syntax
  <flexlib:AdvancedForm
    Properties
    undoHistorySize="5"
    modelType="shared|memory"
    
    >
    ...
      child tags
    ...
  </flexlib:AdvancedForm>
  


Public Properties
 PropertyDefined by
  isValid : Boolean = true
Property that allows for one place to know if the From is valid Default to true, if any Validators are present then it will be set to false
AdvancedForm
  isValid : Boolean = true
AdvancedForm
  modelType : String
The modelStack handles the data.
AdvancedForm
  undoHistorySize : int
The undoHistorySize defaults the number of undos.
AdvancedForm
Public Methods
 MethodDefined by
  
resetForm():void
Resets values of the form
AdvancedForm
Protected Methods
 MethodDefined by
  
Creates snapshot of values for reseting
AdvancedForm
Property detail
isValidproperty
public var isValid:Boolean = true

Property that allows for one place to know if the From is valid Default to true, if any Validators are present then it will be set to false

This property can be used as the source for data binding.

isValidproperty 
public var isValid:Boolean = true
modelTypeproperty 
modelType:String  [read-write]

The modelStack handles the data.

The default value is true.

Implementation
    public function get modelType():String
    public function set modelType(value:String):void
undoHistorySizeproperty 
undoHistorySize:int  [read-write]

The undoHistorySize defaults the number of undos.

The default value is true.

Implementation
    public function get undoHistorySize():int
    public function set undoHistorySize(value:int):void
Method detail
childrenCreated()method
protected override function childrenCreated():void

Creates snapshot of values for reseting

resetForm()method 
public function resetForm():void

Resets values of the form