Packageflexlib.controls.tabBarClasses
Classpublic class SuperTab
InheritanceSuperTab Inheritance mx.controls.tabBarClasses.Tab



Public Properties
 PropertyDefined by
  closePolicy : String
A string representing when to show the close button for the tab.
SuperTab
  doubleClickToEdit : Boolean = false
Boolean indicating if a double click on the tab will allow the editing of the tab label.
SuperTab
  editableLabel : Boolean
SuperTab
  enabled : Boolean
[write-only]
SuperTab
  measuredWidth : Number
[read-only]
SuperTab
  selected : Boolean
[write-only]
SuperTab
  showIndicator : Boolean
A Boolean to determine whether we should draw the indicator arrow icon.
SuperTab
Public Methods
 MethodDefined by
  
Constructor.
SuperTab
  
showIndicatorAt(x:Number):void
SuperTab
Protected Methods
 MethodDefined by
  
SuperTab
  
measure():void
SuperTab
  
rollOutHandler(event:MouseEvent):void
SuperTab
  
rollOverHandler(event:MouseEvent):void
We keep track of the rolled over state internally so we can set the closeButton to enabled or disabled depending on the state.
SuperTab
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
SuperTab
Events
 EventSummaryDefined by
   Fired when the the label of this tab is updated by the user double clicking and editing the tab label.SuperTab
Styles
 StyleDescriptionDefined by
  
indicatorClass
Type: String   CSS Inheritance: no
The class that is used for the indicator
SuperTab
  
tabCloseButtonStyleName
Type: String   CSS Inheritance: no
Name of CSS style declaration that specifies the style to use for the close button
SuperTab
Public Constants
 ConstantDefined by
  CLOSE_ALWAYS : String = "close_always"
[static] Static variables indicating the policy to show the close button.
SuperTab
  CLOSE_NEVER : String = "close_never"
[static]
SuperTab
  CLOSE_ROLLOVER : String = "close_rollover"
[static]
SuperTab
  CLOSE_SELECTED : String = "close_selected"
[static]
SuperTab
  CLOSE_TAB_EVENT : String = "closeTab"
[static]
SuperTab
Property detail
closePolicyproperty
closePolicy:String  [read-write]

A string representing when to show the close button for the tab. Possible values include: SuperTab.CLOSE_ALWAYS, SuperTab.CLOSE_SELECTED, SuperTab.CLOSE_ROLLOVER, SuperTab.CLOSE_NEVER

Implementation
    public function get closePolicy():String
    public function set closePolicy(value:String):void
doubleClickToEditproperty 
public var doubleClickToEdit:Boolean = false

Boolean indicating if a double click on the tab will allow the editing of the tab label.

The default value is false..

editableLabelproperty 
editableLabel:Boolean  [read-write]Implementation
    public function get editableLabel():Boolean
    public function set editableLabel(value:Boolean):void
enabledproperty 
enabled:Boolean  [write-only]Implementation
    public function set enabled(value:Boolean):void
measuredWidthproperty 
measuredWidth:Number  [read-only]Implementation
    public function get measuredWidth():Number
selectedproperty 
selected:Boolean  [write-only]Implementation
    public function set selected(value:Boolean):void
showIndicatorproperty 
showIndicator:Boolean  [read-write]

A Boolean to determine whether we should draw the indicator arrow icon.

Implementation
    public function get showIndicator():Boolean
    public function set showIndicator(value:Boolean):void
Constructor detail
SuperTab()constructor
public function SuperTab()

Constructor.

Method detail
createChildren()method
protected override function createChildren():void
measure()method 
protected override function measure():void
rollOutHandler()method 
protected override function rollOutHandler(event:MouseEvent):voidParameters
event:MouseEvent
rollOverHandler()method 
protected override function rollOverHandler(event:MouseEvent):void

We keep track of the rolled over state internally so we can set the closeButton to enabled or disabled depending on the state.

Parameters
event:MouseEvent
showIndicatorAt()method 
public function showIndicatorAt(x:Number):voidParameters
x:Number
updateDisplayList()method 
protected override function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number
 
unscaledHeight:Number
Event detail
tabUpdatedevent 
Event object type: flexlib.events.SuperTabEvent

Fired when the the label of this tab is updated by the user double clicking and editing the tab label. Only possible if dougbleClickToEdit is true.

Constant detail
CLOSE_ALWAYSconstant
public static const CLOSE_ALWAYS:String = "close_always"

Static variables indicating the policy to show the close button. CLOSE_ALWAYS means the close button is always shown CLOSE_SELECTED means the close button is only shown on the currently selected tab CLOSE_ROLLOVER means the close button is show if the mouse rolls over a tab CLOSE_NEVER means the close button is never show.

CLOSE_NEVERconstant 
public static const CLOSE_NEVER:String = "close_never"
CLOSE_ROLLOVERconstant 
public static const CLOSE_ROLLOVER:String = "close_rollover"
CLOSE_SELECTEDconstant 
public static const CLOSE_SELECTED:String = "close_selected"
CLOSE_TAB_EVENTconstant 
public static const CLOSE_TAB_EVENT:String = "closeTab"