Package | com.gestureworks.cml.elements |
Class | public class Tab |
Inheritance | Tab ![]() ![]() |
TabbedContainer
.
var tab:Tab = new Tab(); tab.title = "tab1"; tab.init(); addChild(tab); var square:Graphic = new Graphic(); square.color = 0x00FF00; square.shape = "rectangle"; square.width = 200; square.height = 200; square.y = 100; tab.addChild(square);
See also
Property | Defined By | ||
---|---|---|---|
applyMask : Boolean
Mask the content to prevent objects from exceeding the boundaries
| Tab | ||
![]() | 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 | |
![]() | dimensionsTo : Object
Sets the dimensions of TouchContainer to given object
| TouchContainer | |
displayBottomLeftRadius : Number
The radius of the lower left corner of the display in pixels
| Tab | ||
displayBottomRightRadius : Number
The radius of the lower right corner of the display in pixels
| Tab | ||
displayColor : uint
The background color of the container
| Tab | ||
displayLeftRadius : Number Deprecated: Please Use displayTopLeftRadius | Tab | ||
displayRightRadius : Number Deprecated: Please Use displayTopRightRadius | Tab | ||
displayTopLeftRadius : Number
The radius of the upper left corner of the display in pixels
| Tab | ||
displayTopRightRadius : Number
The radius of the upper right corner of the display in pixels
| Tab | ||
![]() | dropShadow : Boolean
Sets the drop shadow effect
| TouchContainer | |
![]() | group : String | TouchContainer | |
height : Number [override]
The height of the container
| Tab | ||
![]() | heightPercent : Number
sets the height of the container
| TouchContainer | |
![]() | id : String
Returns the object's id. | TouchContainer | |
isSelected : Boolean
The selected state of the tab container
| Tab | ||
layout : * [override]
Return layout from content container
| Tab | ||
![]() | layoutList : Dictionary | TouchContainer | |
mouseChildren : Boolean [override]
Sets the mouseChildren flag
| Tab | ||
![]() | 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 | |
![]() | sound : String | TouchContainer | |
![]() | state : Dictionary | TouchContainer | |
![]() | stateId : *
Returns the current state id. | TouchContainer | |
tabFont : String
The font of tab's text
| Tab | ||
tabFontColor : Number
The font color of the tab's text
| Tab | ||
tabFontSize : Number
The font size of the tab's text
| Tab | ||
tabHeight : Number
The height of the tab
| Tab | ||
tabLeftRadius : Number
The radius of the upper left corner of the tab in pixels
| Tab | ||
tabRightRadius : Number
The radius of the upper right corner of the tab in pixels
| Tab | ||
tabWidth : Number
The width of the tab
| Tab | ||
tabX : Number
The the x location of the tab relative to the tab container
| Tab | ||
title : String
The text displayed on the container's tab
| Tab | ||
![]() | toBitmap : Boolean | TouchContainer | |
width : Number [override]
The width of the container
| Tab | ||
![]() | widthPercent : Number
sets the width of the container
| TouchContainer |
Method | Defined By | ||
---|---|---|---|
Tab()
Constructor
| Tab | ||
![]() | activateTouch():void | TouchContainer | |
![]() | addAllChildren():void
method searches the child and adds to the list
| TouchContainer | |
addChild(child:DisplayObject):DisplayObject [override]
Reroutes children addition to the content container
| Tab | ||
addChildAt(child:DisplayObject, index:int):DisplayObject [override]
Reroutes children addition at a specified index to the content container
| Tab | ||
applyLayout(value:* = null):void [override]
Apply layout to content container
| Tab | ||
![]() | childToList(id:String, child:*):void
child appended to the childlist
| TouchContainer | |
![]() | clone():*
Clone method
| TouchContainer | |
dispose():void [override]
Destructor
| Tab | ||
![]() | 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
| Tab | ||
![]() | 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 | |
![]() | 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 |
applyMask | property |
applyMask:Boolean
Mask the content to prevent objects from exceeding the boundaries
public function get applyMask():Boolean
public function set applyMask(value:Boolean):void
displayBottomLeftRadius | property |
displayBottomLeftRadius:Number
The radius of the lower left corner of the display in pixels
public function get displayBottomLeftRadius():Number
public function set displayBottomLeftRadius(value:Number):void
displayBottomRightRadius | property |
displayBottomRightRadius:Number
The radius of the lower right corner of the display in pixels
public function get displayBottomRightRadius():Number
public function set displayBottomRightRadius(value:Number):void
displayColor | property |
displayColor:uint
The background color of the container
The default value is 0x000000
.
public function get displayColor():uint
public function set displayColor(value:uint):void
displayLeftRadius | property |
displayLeftRadius:Number
public function get displayLeftRadius():Number
public function set displayLeftRadius(value:Number):void
displayRightRadius | property |
displayRightRadius:Number
public function get displayRightRadius():Number
public function set displayRightRadius(value:Number):void
displayTopLeftRadius | property |
displayTopLeftRadius:Number
The radius of the upper left corner of the display in pixels
public function get displayTopLeftRadius():Number
public function set displayTopLeftRadius(value:Number):void
displayTopRightRadius | property |
displayTopRightRadius:Number
The radius of the upper right corner of the display in pixels
public function get displayTopRightRadius():Number
public function set displayTopRightRadius(value:Number):void
height | property |
height:Number
[override] The height of the container
The default value is 385
.
public function get height():Number
public function set height(value:Number):void
isSelected | property |
isSelected:Boolean
The selected state of the tab container
public function get isSelected():Boolean
public function set isSelected(value:Boolean):void
layout | property |
layout:*
[override] Return layout from content container
public function get layout():*
public function set layout(value:any):void
mouseChildren | property |
mouseChildren:Boolean
[override] Sets the mouseChildren flag
public function get mouseChildren():Boolean
public function set mouseChildren(value:Boolean):void
tabFont | property |
tabFont:String
The font of tab's text
The default value is OpenSansRegular
.
public function get tabFont():String
public function set tabFont(value:String):void
tabFontColor | property |
tabFontColor:Number
The font color of the tab's text
The default value is 0xFFFFFF
.
public function get tabFontColor():Number
public function set tabFontColor(value:Number):void
tabFontSize | property |
tabFontSize:Number
The font size of the tab's text
The default value is 20
.
public function get tabFontSize():Number
public function set tabFontSize(value:Number):void
tabHeight | property |
tabHeight:Number
The height of the tab
public function get tabHeight():Number
public function set tabHeight(value:Number):void
tabLeftRadius | property |
tabLeftRadius:Number
The radius of the upper left corner of the tab in pixels
public function get tabLeftRadius():Number
public function set tabLeftRadius(value:Number):void
tabRightRadius | property |
tabRightRadius:Number
The radius of the upper right corner of the tab in pixels
public function get tabRightRadius():Number
public function set tabRightRadius(value:Number):void
tabWidth | property |
tabWidth:Number
The width of the tab
public function get tabWidth():Number
public function set tabWidth(value:Number):void
tabX | property |
tabX:Number
The the x location of the tab relative to the tab container
public function get tabX():Number
public function set tabX(value:Number):void
title | property |
title:String
The text displayed on the container's tab
The default value is ""
.
public function get title():String
public function set title(value:String):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
Tab | () | Constructor |
public function Tab()
Constructor
addChild | () | method |
override public function addChild(child:DisplayObject):DisplayObject
Reroutes children addition to the content container
Parameters
child:DisplayObject — object to add
|
DisplayObject — the object added
|
addChildAt | () | method |
override public function addChildAt(child:DisplayObject, index:int):DisplayObject
Reroutes children addition at a specified index to the content container
Parameters
child:DisplayObject — object to add
| |
index:int — the content container's index
|
DisplayObject — the object added
|
applyLayout | () | method |
override public function applyLayout(value:* = null):void
Apply layout to content container
Parameters
value:* (default = null )
|
dispose | () | method |
override public function dispose():void
Destructor
init | () | method |
override public function init():void
Initialization call