| Package | flexlib.controls.tabBarClasses |
| Class | public class SuperTab |
| Inheritance | SuperTab mx.controls.tabBarClasses.Tab |
| Property | Defined 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 [override] [write-only] | SuperTab | ||
| measuredWidth : Number [override] [read-only] | SuperTab | ||
| selected : Boolean [override] [write-only] | SuperTab | ||
| showIndicator : Boolean
A Boolean to determine whether we should draw the indicator arrow icon. | SuperTab | ||
| Method | Defined By | ||
|---|---|---|---|
SuperTab()
Constructor. | SuperTab | ||
showIndicatorAt(x:Number):void | SuperTab | ||
| Method | Defined By | ||
|---|---|---|---|
createChildren():void [override] | SuperTab | ||
measure():void [override] | SuperTab | ||
rollOutHandler(event:MouseEvent):void [override] | SuperTab | ||
rollOverHandler(event:MouseEvent):void [override]
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 [override] | SuperTab | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fired when the the label of this tab is updated by the user double clicking and editing the tab label. | SuperTab | |||
| Constant | Defined 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 | ||
| closePolicy | property |
closePolicy:StringA 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
public function get closePolicy():String public function set closePolicy(value:String):void| doubleClickToEdit | property |
public var doubleClickToEdit:Boolean = falseBoolean indicating if a double click on the tab will allow the editing of the tab label.
The default value is false..
| editableLabel | property |
editableLabel:Boolean public function get editableLabel():Boolean public function set editableLabel(value:Boolean):void| enabled | property |
enabled:Boolean [write-only] [override] public function set enabled(value:Boolean):void| measuredWidth | property |
measuredWidth:Number [read-only] [override] public function get measuredWidth():Number| selected | property |
selected:Boolean [write-only] [override] public function set selected(value:Boolean):void| showIndicator | property |
showIndicator:BooleanA Boolean to determine whether we should draw the indicator arrow icon.
public function get showIndicator():Boolean public function set showIndicator(value:Boolean):void| SuperTab | () | Constructor |
public function SuperTab()Constructor.
| createChildren | () | method |
override protected function createChildren():void| measure | () | method |
override protected function measure():void| rollOutHandler | () | method |
override protected function rollOutHandler(event:MouseEvent):voidParameters
event:MouseEvent |
| rollOverHandler | () | method |
override protected function rollOverHandler(event:MouseEvent):voidWe 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 |
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):voidParameters
unscaledWidth:Number | |
unscaledHeight:Number |
| tabUpdated | Event |
flexlib.events.SuperTabEventFired 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.
| CLOSE_ALWAYS | Constant |
public static const CLOSE_ALWAYS:String = close_alwaysStatic 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_NEVER | Constant |
public static const CLOSE_NEVER:String = close_never| CLOSE_ROLLOVER | Constant |
public static const CLOSE_ROLLOVER:String = close_rollover| CLOSE_SELECTED | Constant |
public static const CLOSE_SELECTED:String = close_selected| CLOSE_TAB_EVENT | Constant |
public static const CLOSE_TAB_EVENT:String = closeTab