Packageardisia.components.fieldSet
Classpublic class FieldSet
InheritanceFieldSet Inheritance ExpandingContainer Inheritance spark.components.SkinnableContainer

Fieldset container similar to a HTML fieldset with the addition of being collapsible and skinnable.

View the technical documentation on the Ardisia Labs website for more information.

Default MXML PropertymxmlContentFactory



Public Properties
 PropertyDefined By
  collapsible : Boolean
If true, the fieldset can be collapsed.
FieldSet
 Inheritedduration : Number = 150
The duration of the expand/collapse animations.
ExpandingContainer
 Inheritedeaser : IEaser
The easer to use for expand/collapse animations.
ExpandingContainer
  legend : String
The string to display in the legend.
FieldSet
 Inheritedopen : Boolean
True if the component is open.
ExpandingContainer
Public Methods
 MethodDefined By
 Inherited
Immediately close the component (if open).
ExpandingContainer
 Inherited
Immediately open the component (if closed).
ExpandingContainer
Protected Methods
 MethodDefined By
 Inherited
eventHandler(event:Event):void
Handles events on the component.
ExpandingContainer
 Inherited
getEaser():IEaser
Return the easer to use.
ExpandingContainer
 Inherited
headerBtnPartHandler(event:Event):void
Handles events for the headerBtnPart.
ExpandingContainer
 Inherited
Updates the header button skin part.
ExpandingContainer
 Inherited
Updates the header button skin part.
ExpandingContainer
Events
 Event Summary Defined By
 InheritedDispatched when the component's "open" property changes.ExpandingContainer
 InheritedDispatched when the component contracts, or closes, via user interaction.ExpandingContainer
 InheritedDispatched when the component expands, or opens, via user interaction.ExpandingContainer
Styles
 Style Description Defined By
  
backgroundAlpha
Type: Number CSS Inheritance: no
Alpha of the background. The default value is 1.
FieldSet
  
backgroundColor
Type: Number CSS Inheritance: no
Color of the background. The default value is #FFFFFF.
FieldSet
  
borderAlpha
Type: Number CSS Inheritance: no
Alpha of the border. The default value is 1.
FieldSet
  
borderColor
Type: uint CSS Inheritance: no
Color of the border. The default value is #000000.
FieldSet
  
cornerRadius
Type: Number CSS Inheritance: no
Radius of the corners for the border. The default value is 4.
FieldSet
  
legendLeftOffset
Type: Number CSS Inheritance: no
The number of pixels to offset the legend from the left border. The default value is 10.
FieldSet
Skin Parts

This component uses skins made up of skin parts. Do not set the skin parts directly. The component's skin sets the skin parts.


 Skin Part Description Defined By
 Inherited
headerBtnPart:spark.components.supportClasses.ToggleButtonBase
Required: false Part Type: Static
Header button that expands/contracts the control.
ExpandingContainer
Skin States

To skin the component, implement a skin that defines the following states. Although you must implement all skin states, a skin state can be empty. An empty skin state specifies no changes to the default skin state.


 Skin State Description Defined By
  
animating
Skin state when the fieldset is expanding or contracting. FieldSet
 Inherited Skin state when the panel is expanded. ExpandingContainer
  
openAndCollapsible
Skin state when the fieldset is open and can be collapsed. Use the 'open' skinState when you want the fieldSet expanded but not collapsible. FieldSet
Property Detail
collapsibleproperty
collapsible:Boolean

If true, the fieldset can be collapsed.

The default value is true.


Implementation
    public function get collapsible():Boolean
    public function set collapsible(value:Boolean):void
legendproperty 
legend:String

The string to display in the legend.

The default value is "Legend".


Implementation
    public function get legend():String
    public function set legend(value:String):void