Package | com.gestureworks.cml.elements |
Class | public class Accordion |
Inheritance | Accordion ![]() ![]() |
Property | Defined By | ||
---|---|---|---|
autoLayout : Boolean
Set whether to automatically lay out labels,
or to use padding properties that have been set. | Accordion | ||
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
![]() | childList : ChildList
Returns the object's childList. | TouchContainer | |
![]() | className : String
sets the class name of displayobject
| TouchContainer | |
![]() | cloneExclusions : Vector.<String> [read-only]
Returns a list of properties to exclude when cloning this object
| TouchContainer | |
![]() | cmlIndex : int
Returns the index created by the CML parser. | TouchContainer | |
collapsed : Boolean [read-only] | Accordion | ||
color : uint
The flat fill color
| Accordion | ||
current : int [read-only] | Accordion | ||
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
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 | ||
![]() | group : String | TouchContainer | |
![]() | height : Number [override]
sets the height of the container
| TouchContainer | |
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
![]() | id : String
Returns the object's id. | TouchContainer | |
labels : String | Accordion | ||
![]() | layout : *
specifies the type of layout
| TouchContainer | |
![]() | layoutList : Dictionary | TouchContainer | |
![]() | mouseChildren : Boolean [override]
sets the mousechildren value to true or false. | TouchContainer | |
![]() | paddingBottom : Number
Sets the number of pixels between the container's bottom border and the bottom of its content area. | TouchContainer | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | TouchContainer | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | TouchContainer | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | TouchContainer | |
![]() | position : *
Sets the position
| TouchContainer | |
![]() | relativeX : Boolean
When set true this containers children's x position will be laid out relatively
to each other. | TouchContainer | |
![]() | relativeY : Boolean
When set true this containers children's y position will be laid out relatively
to each other. | TouchContainer | |
selectedIndex : int
The index of the currently selected tab. | Accordion | ||
snapping : Boolean
Set whether or not the accordion menus snap on release. | Accordion | ||
![]() | sound : String | TouchContainer | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
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 | ||
![]() | width : Number [override]
sets the width of the container
| TouchContainer | |
![]() | widthPercent : Number
sets the width of the container
| TouchContainer |
Method | Defined By | ||
---|---|---|---|
Constructor
| Accordion | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
![]() | addChild(child:DisplayObject):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Adds child to display list and, if not already added, the child list
| TouchContainer | |
![]() | applyLayout(value:* = null):void
Apply the containers layout
| TouchContainer | |
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
collapseMenu(immediately:Boolean = false):void | Accordion | ||
dispose():void [override]
Destructor
| Accordion | ||
![]() | getElementById(id:String):*
Searches CML childList by id. | TouchContainer | |
![]() | getElementsByClassName(className:String):Array
Searches the CML childList by className. | TouchContainer | |
![]() | getElementsByTagName(tagName:Class):Array
Searches the CML childList by tagName as Class. | TouchContainer | |
init():void [override]
Initialization call
| Accordion | ||
![]() | loadState(sId:* = null, recursion:Boolean = false):void
Loads state by index number. | TouchContainer | |
![]() | makeGestureList(value:XMLList):Object
Creates gestureList object from XML
| TouchContainer | |
![]() | parseCML(cml:XMLList):XMLList
Parse cml for local layouts. | TouchContainer | |
![]() | postparseCML(cml:XMLList):void
Abstract method allows the setting of a postparse CML routine. | TouchContainer | |
![]() | querySelector(selector:String):*
Searches the CML childList by selector. | TouchContainer | |
![]() | querySelectorAll(selector:*):Array
Search the CML childList by selector. | TouchContainer | |
![]() | removeChild(child:DisplayObject):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildAt(index:int):DisplayObject [override]
Removes child from display list and, if not already removed, the child list
| TouchContainer | |
![]() | removeChildren(beginIndex:int = 0, endIndex:int = 2147483647):void [override]
Removes children from display list and, if not already removed, the child list
| TouchContainer | |
![]() | saveState(sId:* = null, recursion:Boolean = false):void
Save state by index number. | TouchContainer | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | TouchContainer | |
select(index:Number):void | Accordion | ||
![]() | setDimensionsToChild():void
method sets the dimensions of each child
| TouchContainer | |
![]() | tweenState(sId:* = null, tweenTime:Number = 1):void
Tween state by stateIndex from current to given state index. | TouchContainer | |
![]() | updatePadding():void
Updates child padding within this container
| TouchContainer | |
![]() | updatePercentDim():void
Updates child percent dimensions within this container
| TouchContainer | |
![]() | updateProperties(state:* = 0):void
Updates properties from state. | TouchContainer | |
![]() | updateRelativePos():void
Updates child relative positions within this container
| TouchContainer |
autoLayout | property |
autoLayout:Boolean
Set whether to automatically lay out labels, or to use padding properties that have been set.
public function get autoLayout():Boolean
public function set autoLayout(value:Boolean):void
collapsed | property |
collapsed:Boolean
[read-only] public function get collapsed():Boolean
color | property |
color:uint
The flat fill color
public function get color():uint
public function set color(value:uint):void
current | property |
current:int
[read-only] public function get current():int
fill | property |
fill:String
Choose whether to use a solid fill color or gradient.
The default value is "gradient"
.
public function get fill():String
public function set fill(value:String):void
font | property |
font:String
Set the font of the tabs.
public function get font():String
public function set font(value:String):void
fontColor | property |
fontColor:uint
Set the font color.
public function get fontColor():uint
public function set fontColor(value:uint):void
fontSize | property |
fontSize:Number
Set the font size.
public function get fontSize():Number
public function set fontSize(value:Number):void
gradientAlphas | property |
gradientAlphas:String
Input the gradient alphas as a comma separated string.
public function get gradientAlphas():String
public function set gradientAlphas(value:String):void
gradientColors | property |
gradientColors:String
Input the gradient colors as a comma-separated list.
public function get gradientColors():String
public function set gradientColors(value:String):void
gradientRatios | property |
gradientRatios:String
public function get gradientRatios():String
public function set gradientRatios(value:String):void
labels | property |
labels:String
public function get labels():String
public function set labels(value:String):void
selectedIndex | property |
selectedIndex:int
The index of the currently selected tab.
public function get selectedIndex():int
public function set selectedIndex(value:int):void
snapping | property |
snapping:Boolean
Set whether or not the accordion menus snap on release.
public function get snapping():Boolean
public function set snapping(value:Boolean):void
twirlIconHeight | property |
twirlIconHeight:Number
Set the height of the twirl icon if it's turned on.
public function get twirlIconHeight():Number
public function set twirlIconHeight(value:Number):void
twirlIndicator | property |
twirlIndicator:Boolean
Set whether or not to display triangles that twirl when a menu is opened.
public function get twirlIndicator():Boolean
public function set twirlIndicator(value:Boolean):void
twirlStroke | property |
twirlStroke:Number
Set the thickness of the twirl triangle. Everything else is based on font size.
public function get twirlStroke():Number
public function set twirlStroke(value:Number):void
Accordion | () | Constructor |
public function Accordion()
Constructor
collapseMenu | () | method |
public function collapseMenu(immediately:Boolean = false):void
Parameters
immediately:Boolean (default = false )
|
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 |