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

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

MXML SyntaxexpandedHide MXML Syntax
<pre> &lt;flexlib:AdvancedForm <strong>Properties</strong> undoHistorySize="5" modelType="shared|memory" &gt; ... <i>child tags</i> ... &lt;/flexlib:AdvancedForm&gt; </pre>


Public Properties
 PropertyDefined By
  isValid : Boolean
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
  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
  
[override] Creates snapshot of values for reseting
AdvancedForm
Property Detail
isValidproperty
isValid:Boolean

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.


Implementation
    public function get isValid():Boolean
    public function set isValid(value:Boolean):void
modelTypeproperty 
modelType:String

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

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
override protected function childrenCreated():void

Creates snapshot of values for reseting

resetForm()method 
public function resetForm():void

Resets values of the form