Packagecom.gestureworks.cml.element
Classpublic class Tab
InheritanceTab Inheritance Container Inheritance ContainerFactory Inheritance ElementFactory Inheritance flash.display.Sprite

The Tab element is a container with a tab extension. The container's contents will be visible when the selected state is true and hidden othewise. Intended to be grouped and toggled between other tab elements in a 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

TabbedContainer


Public Properties
 PropertyDefined By
 Inheritedalpha : Number
[override] [write-only] sets the alpha for display objects
ElementFactory
  applyMask : Boolean
Mask the content to prevent objects from exceeding the boundaries
Tab
 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
 InheriteddebugStyle : *
sets the debug style
ElementFactory
 InheriteddimensionsTo : String
sets the dimensions of the container
ContainerFactory
  displayColor : uint
The background color of the container
Tab
 InheriteddisplayEvents : 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
 InheriteddropShadow : Boolean
Sets the drop shadow effect
ElementFactory
  height : Number
[override] The height of the container
Tab
 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
  isSelected : Boolean
The selected state of the tab container
Tab
  layout : *
[override] Return layout from content container
Tab
 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
  mouseChildren : Boolean
[override] [write-only] Sets the mouseChildren flag
Tab
 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
 Inheritedstate : 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
 Inheritedtop : Number
sets top value
ElementFactory
 InheritedverticalCenter : Number
sets the vertical center of display object
ElementFactory
  width : Number
[override] The width of the container
Tab
 InheritedwidthPercent : String
sets the percent of width of display object
ElementFactory
Public Methods
 MethodDefined By
  
Tab()
Constructor
Tab
 Inherited
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
 Inherited
childToList(id:String, child:*):void
this method append to the childlist
ContainerFactory
 Inherited
clone():*
Returns clone of self
ElementFactory
  
[override] CML initialization call
Tab
  
dispose():void
[override] Destructor
Tab
 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
Tab
 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
 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
applyMaskproperty
applyMask:Boolean

Mask the content to prevent objects from exceeding the boundaries


Implementation
    public function get applyMask():Boolean
    public function set applyMask(value:Boolean):void
displayColorproperty 
displayColor:uint

The background color of the container

The default value is 0x000000.


Implementation
    public function get displayColor():uint
    public function set displayColor(value:uint):void
displayLeftRadiusproperty 
displayLeftRadius:Number

The radius of the upper left corner of the display in pixels


Implementation
    public function get displayLeftRadius():Number
    public function set displayLeftRadius(value:Number):void
displayRightRadiusproperty 
displayRightRadius:Number

The radius of the upper right corner of the display in pixels


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

The height of the container

The default value is 385.


Implementation
    public function get height():Number
    public function set height(value:Number):void
isSelectedproperty 
isSelected:Boolean

The selected state of the tab container


Implementation
    public function get isSelected():Boolean
    public function set isSelected(value:Boolean):void
layoutproperty 
layout:*[override]

Return layout from content container


Implementation
    public function get layout():*
    public function set layout(value:any):void
mouseChildrenproperty 
mouseChildren:Boolean  [write-only] [override]

Sets the mouseChildren flag


Implementation
    public function set mouseChildren(value:Boolean):void
tabFontproperty 
tabFont:String

The font of tab's text

The default value is OpenSansRegular.


Implementation
    public function get tabFont():String
    public function set tabFont(value:String):void
tabFontColorproperty 
tabFontColor:Number

The font color of the tab's text

The default value is 0xFFFFFF.


Implementation
    public function get tabFontColor():Number
    public function set tabFontColor(value:Number):void
tabFontSizeproperty 
tabFontSize:Number

The font size of the tab's text

The default value is 20.


Implementation
    public function get tabFontSize():Number
    public function set tabFontSize(value:Number):void
tabHeightproperty 
tabHeight:Number

The height of the tab


Implementation
    public function get tabHeight():Number
    public function set tabHeight(value:Number):void
tabLeftRadiusproperty 
tabLeftRadius:Number

The radius of the upper left corner of the tab in pixels


Implementation
    public function get tabLeftRadius():Number
    public function set tabLeftRadius(value:Number):void
tabRightRadiusproperty 
tabRightRadius:Number

The radius of the upper right corner of the tab in pixels


Implementation
    public function get tabRightRadius():Number
    public function set tabRightRadius(value:Number):void
tabWidthproperty 
tabWidth:Number

The width of the tab


Implementation
    public function get tabWidth():Number
    public function set tabWidth(value:Number):void
tabXproperty 
tabX:Number

The the x location of the tab relative to the tab container


Implementation
    public function get tabX():Number
    public function set tabX(value:Number):void
titleproperty 
title:String

The text displayed on the container's tab

The default value is "".


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

The width of the container

The default value is 500.


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

Constructor

Method Detail
addChild()method
override public function addChild(child:DisplayObject):DisplayObject

Reroutes children addition to the content container

Parameters

child:DisplayObject — object to add

Returns
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

Returns
DisplayObject — the object added
applyLayout()method 
override public function applyLayout(value:* = null):void

Apply layout to content container

Parameters

value:* (default = null)

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

CML initialization call

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

Destructor

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

Initialization call