Packageardisia.components.expandingContainer
Classpublic class ExpandingContainer
InheritanceExpandingContainer Inheritance spark.components.SkinnableContainer
Implements IExpandingContainer
Subclasses AccordionContainer, FieldSet

Skinnable container that expands/contracts in response to user interaction on the header or by setting the "open" property directly.

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

Default MXML PropertymxmlContentFactory



Public Properties
 PropertyDefined By
  duration : Number = 150
The duration of the expand/collapse animations.
ExpandingContainer
  easer : IEaser
The easer to use for expand/collapse animations.
ExpandingContainer
  icon : Object
The icon to display in the header button part.
ExpandingContainer
  label : String
The string to display in the header button part.
ExpandingContainer
  open : Boolean
True if the component is open.
ExpandingContainer
Public Methods
 MethodDefined By
  
Immediately close the component (if open).
ExpandingContainer
  
Immediately open the component (if closed).
ExpandingContainer
Protected Methods
 MethodDefined By
  
eventHandler(event:Event):void
Handles events on the component.
ExpandingContainer
  
getEaser():IEaser
Return the easer to use.
ExpandingContainer
  
headerBtnPartHandler(event:Event):void
Handles events for the headerBtnPart.
ExpandingContainer
  
Updates the header button skin part.
ExpandingContainer
  
Updates the header button skin part.
ExpandingContainer
Events
 Event Summary Defined By
  Dispatched when the component's "open" property changes.ExpandingContainer
  Dispatched when the component contracts, or closes, via user interaction.ExpandingContainer
  Dispatched when the component expands, or opens, via user interaction.ExpandingContainer
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
  
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
  
open
Skin state when the panel is expanded. ExpandingContainer
Property Detail
durationproperty
public var duration:Number = 150

The duration of the expand/collapse animations. Set to 0 to skip the animation.

The default value is 150.

easerproperty 
public var easer:IEaser

The easer to use for expand/collapse animations.

The default value is Sine.

iconproperty 
icon:Object

The icon to display in the header button part. See the "icon" property for a spark button for supported formats.

The default value is null.


Implementation
    public function get icon():Object
    public function set icon(value:Object):void
labelproperty 
label:String

The string to display in the header button part.

Property is bindable.

The default value is "".

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


Implementation
    public function get label():String
    public function set label(value:String):void
openproperty 
open:Boolean

True if the component is open. False if closed. Set to true or false to open and close the container. Will open or close immediately without any animations.

To close or open via animations, use the openContainer() / closeContainer() functions.

Property is bindable.

The default value is true.

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


Implementation
    public function get open():Boolean
    public function set open(value:Boolean):void
Method Detail
closeContainer()method
public function closeContainer():void

Immediately close the component (if open).

eventHandler()method 
protected function eventHandler(event:Event):void

Handles events on the component.

Parameters

event:Event — the Event that triggered the handler

getEaser()method 
protected function getEaser():IEaser

Return the easer to use.

Returns
IEaser
headerBtnPartHandler()method 
protected function headerBtnPartHandler(event:Event):void

Handles events for the headerBtnPart.

Parameters

event:Event — the Event that triggered the handler

openContainer()method 
public function openContainer():void

Immediately open the component (if closed).

updateContentGroup()method 
protected function updateContentGroup():void

Updates the header button skin part.

updateHeaderBtnPart()method 
protected function updateHeaderBtnPart():void

Updates the header button skin part.

Event Detail
change Event
Event Object Type: ardisia.components.expandingContainer.events.ExpandingContainerEvent
ExpandingContainerEvent.type property = ardisia.components.expandingContainer.events.ExpandingContainerEvent

Dispatched when the component's "open" property changes. Dispatched before any animations finish running.

collapsed Event  
Event Object Type: ardisia.components.expandingContainer.events.ExpandingContainerEvent
ExpandingContainerEvent.type property = ardisia.components.expandingContainer.events.ExpandingContainerEvent

Dispatched when the component contracts, or closes, via user interaction. Dispatched at the end of any animations.

expanded Event  
Event Object Type: ardisia.components.expandingContainer.events.ExpandingContainerEvent
ExpandingContainerEvent.type property = ardisia.components.expandingContainer.events.ExpandingContainerEvent

Dispatched when the component expands, or opens, via user interaction. Dispatched at the end of any animations.