Packagecom.gestureworks.cml.element
Classpublic class Accordion
InheritanceAccordion Inheritance Container Inheritance ContainerFactory Inheritance ElementFactory Inheritance flash.display.Sprite

The Accordion is an interactive container which holds display objects in a collapsible menu. The Accordion takes a string of labels and a number of children to create containers separated by tabs that can be tapped or dragged to be expanded or collapsed.



Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  autoLayout : Boolean
Set whether to automatically lay out labels, or to use padding properties that have been set.
Accordion
  backgroundColor : uint
The color of the background graphic element
Accordion
 Inheritedblur : Boolean
Sets the drop shadow effect
ElementFactory
 Inheritedbottom : Number
sets the bottom value
ElementFactory
 InheritedchildList : ChildList
[read-only] store the child list
ContainerFactory
 Inheritedclass_ : String
Object's css class;
ElementFactory
 InheritedclassName : String
sets the class name of displayobject
ElementFactory
 InheritedcmlIndex : int
sets the cml index
ElementFactory
  collapsed : Boolean
[read-only]
Accordion
  collapsedHeight : Number = 0
Accordion
  color : uint
The flat fill color
Accordion
  current : int
[read-only]
Accordion
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddimensionsTo : String
sets the dimensions of the container
ContainerFactory
 InheriteddisplayEvents : String
Use for dispatch completes.
ElementFactory
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
  fill : String
Choose whether to use a solid fill color or gradient.
Accordion
  font : String
Set the font of the tabs.
Accordion
  fontColor : uint
Set the font color.
Accordion
  fontSize : Number
Set the font size.
Accordion
  gradientAlphas : String
Input the gradient alphas as a comma separated string.
Accordion
  gradientColors : String
Input the gradient colors as a comma-separated list.
Accordion
  gradientRatios : String
Accordion
  height : Number
[override] The height of the container
Accordion
 InheritedheightPercent : String
sets the height percent of display object
ElementFactory
 InheritedhorizontalCenter : Number
sets the horizontal center of display object
ElementFactory
 Inheritedid : String
sets the id of child
ElementFactory
 Inheritedindex : int
sets the index of display object
ElementFactory
 InheritedinfoSource : String
sets info source
ContainerFactory
  labels : String
Accordion
 Inheritedlayout : *
Sets the layout of the container
Container
 InheritedlayoutComplete : Function
Sets the function to call when the layout is complete
Container
 InheritedlayoutList : Dictionary
Defines the layoutlist
Container
 InheritedlayoutUpdate : Function
Sets the function to call when the layout updates
Container
 Inheritedleft : Number
sets left value
ElementFactory
 InheritedpaddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area.
Container
 InheritedpaddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area.
Container
 InheritedpaddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area.
Container
 InheritedpaddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area.
Container
 Inheritedposition : String
Sets the position
Container
 InheritedpropertyStates : Array
Deprecated: Please Use state
ElementFactory
 Inheritedright : Number
sets the right value
ElementFactory
 Inheritedscale : Number
Sets both the x and y scale values
ElementFactory
 InheritedscaleX : Number
[override] Sets width of the display object in pixels
ElementFactory
 InheritedscaleY : Number
[override] Sets width of the display object in pixels
ElementFactory
  selectedIndex : int
The index of the currently selected tab.
Accordion
  snapping : Boolean
Set whether or not the accordion menus snap on release.
Accordion
 Inheritedstate : Array
property states array
ElementFactory
 Inheritedtop : Number
sets top value
ElementFactory
  totalHeight : Number = 0
Accordion
  twirlIconHeight : Number
Set the height of the twirl icon if it's turned on.
Accordion
  twirlIndicator : Boolean
Set whether or not to display triangles that twirl when a menu is opened.
Accordion
  twirlStroke : Number
Set the thickness of the twirl triangle.
Accordion
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
  width : Number
[override] The width of the container
Accordion
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Accordion
 Inherited
This method searches the childlist and add the children
ContainerFactory
 Inherited
addChild(child:DisplayObject):DisplayObject
[override] Adds child to display list and, if not already added, the child list TODO: This mechanism should be abstracted to better syncrhonize child and display lists
Container
 Inherited
applyLayout(value:* = null):void
Apply the containers layout
Container
 Inherited
childToList(id:String, child:*):void
this method append to the childlist
ContainerFactory
 Inherited
clone():*
Returns clone of self
ElementFactory
  
[override] CML initialization.
Accordion
  
dispose():void
[override] Destructor
Accordion
 Inherited
getIndex(index:int):*
returns childlist index
Container
 Inherited
getKey(key:String):*
returns the childlist key
Container
 Inherited
hideIndex(index:int):void
hides the childlist index
Container
 Inherited
hideKey(key:String):void
hides the childlist key
Container
  
init():void
[override] Initialization call
Accordion
 Inherited
parseCML(cml:XMLList):XMLList
[override] Parse cml for local layouts.
Container
 Inherited
postparseCML(cml:XMLList):void
post parses the cml file
ElementFactory
 Inherited
searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists.
Container
  
select(index:Number):void
Accordion
 Inherited
This method sets the dimensions of childlist
ContainerFactory
 Inherited
showIndex(index:int):void
shows the childlist index
Container
 Inherited
showKey(key:String):void
shows the childlist key
Container
 Inherited
updateProperties(state:Number = 0):void
this method updates the properties
ElementFactory
Property Detail
autoLayoutproperty
autoLayout:Boolean

Set whether to automatically lay out labels, or to use padding properties that have been set.


Implementation
    public function get autoLayout():Boolean
    public function set autoLayout(value:Boolean):void
backgroundColorproperty 
backgroundColor:uint

The color of the background graphic element

The default value is 0x424141.


Implementation
    public function get backgroundColor():uint
    public function set backgroundColor(value:uint):void
collapsedproperty 
collapsed:Boolean  [read-only]


Implementation
    public function get collapsed():Boolean
collapsedHeightproperty 
public var collapsedHeight:Number = 0

colorproperty 
color:uint

The flat fill color


Implementation
    public function get color():uint
    public function set color(value:uint):void
currentproperty 
current:int  [read-only]


Implementation
    public function get current():int
fillproperty 
fill:String

Choose whether to use a solid fill color or gradient.

The default value is "gradient".


Implementation
    public function get fill():String
    public function set fill(value:String):void
fontproperty 
font:String

Set the font of the tabs.


Implementation
    public function get font():String
    public function set font(value:String):void
fontColorproperty 
fontColor:uint

Set the font color.


Implementation
    public function get fontColor():uint
    public function set fontColor(value:uint):void
fontSizeproperty 
fontSize:Number

Set the font size.


Implementation
    public function get fontSize():Number
    public function set fontSize(value:Number):void
gradientAlphasproperty 
gradientAlphas:String

Input the gradient alphas as a comma separated string.


Implementation
    public function get gradientAlphas():String
    public function set gradientAlphas(value:String):void
gradientColorsproperty 
gradientColors:String

Input the gradient colors as a comma-separated list.


Implementation
    public function get gradientColors():String
    public function set gradientColors(value:String):void
gradientRatiosproperty 
gradientRatios:String


Implementation
    public function get gradientRatios():String
    public function set gradientRatios(value:String):void
heightproperty 
height:Number[override]

The height of the container


Implementation
    public function get height():Number
    public function set height(value:Number):void
labelsproperty 
labels:String


Implementation
    public function get labels():String
    public function set labels(value:String):void
selectedIndexproperty 
selectedIndex:int

The index of the currently selected tab.


Implementation
    public function get selectedIndex():int
    public function set selectedIndex(value:int):void
snappingproperty 
snapping:Boolean

Set whether or not the accordion menus snap on release.


Implementation
    public function get snapping():Boolean
    public function set snapping(value:Boolean):void
totalHeightproperty 
public var totalHeight:Number = 0

twirlIconHeightproperty 
twirlIconHeight:Number

Set the height of the twirl icon if it's turned on.


Implementation
    public function get twirlIconHeight():Number
    public function set twirlIconHeight(value:Number):void
twirlIndicatorproperty 
twirlIndicator:Boolean

Set whether or not to display triangles that twirl when a menu is opened.


Implementation
    public function get twirlIndicator():Boolean
    public function set twirlIndicator(value:Boolean):void
twirlStrokeproperty 
twirlStroke:Number

Set the thickness of the twirl triangle. Everything else is based on font size.


Implementation
    public function get twirlStroke():Number
    public function set twirlStroke(value:Number):void
widthproperty 
width:Number[override]

The width of the container


Implementation
    public function get width():Number
    public function set width(value:Number):void
Constructor Detail
Accordion()Constructor
public function Accordion()



Method Detail
displayComplete()method
override public function displayComplete():void

CML initialization.

dispose()method 
override public function dispose():void

Destructor

init()method 
override public function init():void

Initialization call

select()method 
public function select(index:Number):void

Parameters

index:Number