| Package | com.gestureworks.cml.element |
| Class | public class Tab |
| Inheritance | Tab Container ContainerFactory ElementFactory flash.display.Sprite |
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 | ||
|---|---|---|---|
![]() | alpha : Number [override] [write-only]
sets the alpha for display objects
| ElementFactory | |
| applyMask : Boolean
Mask the content to prevent objects from exceeding the boundaries
| Tab | ||
![]() | blur : Boolean
Sets the drop shadow effect
| ElementFactory | |
![]() | bottom : Number
sets the bottom value
| ElementFactory | |
![]() | childList : ChildList [read-only]
store the child list
| ContainerFactory | |
![]() | class_ : String
Object's css class;
| ElementFactory | |
![]() | className : String
sets the class name of displayobject
| ElementFactory | |
![]() | cmlIndex : int
sets the cml index
| ElementFactory | |
![]() | debugStyle : *
sets the debug style
| ElementFactory | |
![]() | dimensionsTo : String
sets the dimensions of the container
| ContainerFactory | |
| displayColor : uint
The background color of the container
| Tab | ||
![]() | displayEvents : String
Use for dispatch completes. | ElementFactory | |
| displayLeftRadius : Number
The radius of the upper left corner of the display in pixels
| Tab | ||
| displayRightRadius : Number
The radius of the upper right corner of the display in pixels
| Tab | ||
![]() | dropShadow : Boolean
Sets the drop shadow effect
| ElementFactory | |
| height : Number [override]
The height of the container
| Tab | ||
![]() | heightPercent : String
sets the height percent of display object
| ElementFactory | |
![]() | horizontalCenter : Number
sets the horizontal center of display object
| ElementFactory | |
![]() | id : String
sets the id of child
| ElementFactory | |
![]() | index : int
sets the index of display object
| ElementFactory | |
![]() | infoSource : String
sets info source
| ContainerFactory | |
| isSelected : Boolean
The selected state of the tab container
| Tab | ||
| layout : * [override]
Return layout from content container
| Tab | ||
![]() | layoutComplete : Function
Sets the function to call when the layout is complete
| Container | |
![]() | layoutList : Dictionary
Defines the layoutlist
| Container | |
![]() | layoutUpdate : Function
Sets the function to call when the layout updates
| Container | |
![]() | left : Number
sets left value
| ElementFactory | |
| mouseChildren : Boolean [override] [write-only]
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. | Container | |
![]() | paddingLeft : Number
Sets the number of pixels between the component's left border and the left edge of its content area. | Container | |
![]() | paddingRight : Number
Sets the number of pixels between the component's right border and the right edge of its content area. | Container | |
![]() | paddingTop : Number
Sets the number of pixels between the container's top border and the top of its content area. | Container | |
![]() | position : String
Sets the position
| Container | |
![]() | propertyStates : Array Deprecated: Please Use state | ElementFactory | |
![]() | right : Number
sets the right value
| ElementFactory | |
![]() | scale : Number
Sets both the x and y scale values
| ElementFactory | |
![]() | scaleX : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | scaleY : Number [override]
Sets width of the display object in pixels
| ElementFactory | |
![]() | state : Array
property states array
| ElementFactory | |
| 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 | ||
![]() | top : Number
sets top value
| ElementFactory | |
![]() | verticalCenter : Number
sets the vertical center of display object
| ElementFactory | |
| width : Number [override]
The width of the container
| Tab | ||
![]() | widthPercent : String
sets the percent of width of display object
| ElementFactory | |
| Method | Defined By | ||
|---|---|---|---|
Tab()
Constructor
| Tab | ||
![]() | addAllChildren():void
This method searches the childlist and add the children
| ContainerFactory | |
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
this method append to the childlist
| ContainerFactory | |
![]() | clone():*
Returns clone of self
| ElementFactory | |
displayComplete():void [override]
CML initialization call
| Tab | ||
dispose():void [override]
Destructor
| Tab | ||
![]() | getIndex(index:int):*
returns childlist index
| Container | |
![]() | getKey(key:String):*
returns the childlist key
| Container | |
![]() | hideIndex(index:int):void
hides the childlist index
| Container | |
![]() | hideKey(key:String):void
hides the childlist key
| Container | |
init():void [override]
Initialization call
| Tab | ||
![]() | parseCML(cml:XMLList):XMLList [override]
Parse cml for local layouts. | Container | |
![]() | postparseCML(cml:XMLList):void
post parses the cml file
| ElementFactory | |
![]() | searchChildren(value:*, returnType:Class = null):*
This method does a depth first search of childLists. | Container | |
![]() | setDimensionsToChild():void
This method sets the dimensions of childlist
| ContainerFactory | |
![]() | showIndex(index:int):void
shows the childlist index
| Container | |
![]() | showKey(key:String):void
shows the childlist key
| Container | |
![]() | updateProperties(state:Number = 0):void
this method updates the properties
| ElementFactory | |
| applyMask | property |
applyMask:BooleanMask the content to prevent objects from exceeding the boundaries
public function get applyMask():Boolean public function set applyMask(value:Boolean):void| displayColor | property |
displayColor:uintThe 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:NumberThe radius of the upper left corner of the display in pixels
public function get displayLeftRadius():Number public function set displayLeftRadius(value:Number):void| displayRightRadius | property |
displayRightRadius:NumberThe radius of the upper right corner of the display in pixels
public function get displayRightRadius():Number public function set displayRightRadius(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:BooleanThe 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 [write-only] [override] Sets the mouseChildren flag
public function set mouseChildren(value:Boolean):void| tabFont | property |
tabFont:StringThe 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:NumberThe 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:NumberThe 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:NumberThe height of the tab
public function get tabHeight():Number public function set tabHeight(value:Number):void| tabLeftRadius | property |
tabLeftRadius:NumberThe 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:NumberThe 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:NumberThe width of the tab
public function get tabWidth():Number public function set tabWidth(value:Number):void| tabX | property |
tabX:NumberThe 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:StringThe 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):DisplayObjectReroutes 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):DisplayObjectReroutes 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):voidApply layout to content container
Parameters
value:* (default = null) |
| displayComplete | () | method |
override public function displayComplete():voidCML initialization call
| dispose | () | method |
override public function dispose():voidDestructor
| init | () | method |
override public function init():voidInitialization call