flexlib :: library Documentation | All Packages | All Classes | Index | Frames No Frames |
AdvancedForm

Package | flexlib.containers
Class | public class AdvancedForm
Inheritance | AdvancedForm 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 Syntax Show MXML Syntax
Hide 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

| Property | Defined 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

| Method | Defined By
--- | --- | ---
|  | resetForm():void Resets values of the form | AdvancedForm

Protected Methods

| Method | Defined By
--- | --- | ---
|  | childrenCreated():void [override] Creates snapshot of values for reseting | AdvancedForm

Property Detail

isValid | property

`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`

modelType | property |

`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`

undoHistorySize | property |

`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

Dimanche Juin 19 2011, 03:12 PM +02:00