Package | com.gestureworks.cml.elements |
Class | public class TabbedContainer |
Inheritance | TabbedContainer ![]() ![]() |
var tabC:TabbedContainer = new TabbedContainer(); tabC.x = 100; tabC.y = 100; tabC.init(); addChild(tabC); var tab:Tab = new Tab(); tab.title = "tab1"; tab.init(); tabC.addTab(tab); var tab1:Tab = new Tab(); tab1.title = "tab2"; tab1.init(); tabC.addTab(tab1); var circle:Graphic = new Graphic(); circle.color = 0xFF0000; circle.shape = "circle"; circle.radius = 100; circle.y = 100; tab.addChild(circle); var square:Graphic = new Graphic(); square.color = 0x00FF00; square.shape = "rectangle"; square.width = 200; square.height = 200; square.y = 100; tab1.addChild(square);
See also
Property | Defined By | ||
---|---|---|---|
![]() | autoShuffle : Boolean
autoshuffles
| TouchContainer | |
backgroundAlpha : Number
The alpha of the background graphic element
| TabbedContainer | ||
backgroundColor : uint
The color of the background graphic element
| TabbedContainer | ||
![]() | 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 | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | group : String | TouchContainer | |
height : Number [override]
The height of the container
| TabbedContainer | ||
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
![]() | id : String
Returns the object's id. | TouchContainer | |
![]() | 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. | TabbedContainer | ||
![]() | sound : String | TouchContainer | |
spacing : Number
The spacing between each tab
| TabbedContainer | ||
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
![]() | toBitmap : Boolean | TouchContainer | |
width : Number [override]
The width of the container
| TabbedContainer | ||
![]() | widthPercent : Number
sets the width of the container
| TouchContainer |
Method | Defined By | ||
---|---|---|---|
Constructor
| TabbedContainer | ||
![]() | 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 | |
dispose():void [override]
Destructor
| TabbedContainer | ||
![]() | 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
| TabbedContainer | ||
![]() | 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 | |
selectTabByIndex(index:int):void
Updates the selected state of the target tab element by index
| TabbedContainer | ||
![]() | 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 |
backgroundAlpha | property |
backgroundAlpha:Number
The alpha of the background graphic element
The default value is 1.0
.
public function get backgroundAlpha():Number
public function set backgroundAlpha(value:Number):void
backgroundColor | property |
backgroundColor:uint
The color of the background graphic element
The default value is 0x424141
.
public function get backgroundColor():uint
public function set backgroundColor(value:uint):void
height | property |
height:Number
[override] The height of the container
The default value is 420
.
public function get height():Number
public function set height(value:Number):void
selectedIndex | property |
selectedIndex:int
The index of the currently selected tab.
public function get selectedIndex():int
public function set selectedIndex(value:int):void
spacing | property |
spacing:Number
The spacing between each tab
The default value is 5
.
public function get spacing():Number
public function set spacing(value:Number):void
width | property |
width:Number
[override] The width of the container
The default value is 500
.
public function get width():Number
public function set width(value:Number):void
TabbedContainer | () | Constructor |
public function TabbedContainer()
Constructor
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialization call
selectTabByIndex | () | method |
public function selectTabByIndex(index:int):void
Updates the selected state of the target tab element by index
Parameters
index:int — the touch event
|