| Package | flexlib.controls |
| Class | public class SuperTabBar |
| Inheritance | SuperTabBar mx.controls.TabBar |
Hide MXML SyntaxDefault MXML PropertydataProvider
See also
| Property | Defined By | ||
|---|---|---|---|
| closePolicy : String
The policy for when to show the close button for each tab. | SuperTabBar | ||
| dragEnabled : Boolean
Boolean indicating if this SuperTabBar allows its tabs to be dragged. | SuperTabBar | ||
| dropEnabled : Boolean
Boolean indicating if this SuperTabBar allows its tabs to be dropped onto it. | SuperTabBar | ||
| editableTabLabels : Boolean
Boolean indicating if tab labels can be edited. | SuperTabBar | ||
| Method | Defined By | ||
|---|---|---|---|
Constructor
| SuperTabBar | ||
getClosePolicyForTab(index:int):String | SuperTabBar | ||
initialize():void [override] | SuperTabBar | ||
resetTabs():void | SuperTabBar | ||
setClosePolicyForTab(index:int, value:String):void | SuperTabBar | ||
| Method | Defined By | ||
|---|---|---|---|
getTabClass():Class
For extensibility, if you extend SuperTabBar with a custom tab bar implementation,
you can override the getTabClass function to return the class for the tabs that should
be used. | SuperTabBar | ||
updateNavItemIcon(index:int, icon:Class):void [override] | SuperTabBar | ||
updateNavItemLabel(index:int, label:String):void [override] | SuperTabBar | ||
| Event | Summary | Defined By | ||
|---|---|---|---|---|
| Fired when the close button of a tab is clicked. | SuperTabBar | |||
| Fired when a tab is dropped onto this SuperTabBar, which re-orders the tabs and updates the list of tabs. | SuperTabBar | |||
| Fired when the the label or icon of a child is updated and the tab gets updated to reflect the new icon or label. | SuperTabBar | |||
| Constant | Defined By | ||
|---|---|---|---|
| TABS_REORDERED : String = tabsReordered [static]
Event that is dispatched when the tabs are re-ordered in the SuperTabBar. | SuperTabBar | ||
| closePolicy | property |
closePolicy:StringThe policy for when to show the close button for each tab. <p>This is a proxy property that sets each SuperTab's closePolicy setting to whatever is set here.</p>
public function get closePolicy():String public function set closePolicy(value:String):voidSee also
| dragEnabled | property |
dragEnabled:BooleanBoolean indicating if this SuperTabBar allows its tabs to be dragged. <p>If both dragEnabled and dropEnabled are true then the SuperTabBar allows tabs to be reordered with drag and drop.</p>
public function get dragEnabled():Boolean public function set dragEnabled(value:Boolean):void| dropEnabled | property |
dropEnabled:BooleanBoolean indicating if this SuperTabBar allows its tabs to be dropped onto it. <p>If both dragEnabled and dropEnabled are true then the SuperTabBar allows tabs to be reordered with drag and drop.</p>
public function get dropEnabled():Boolean public function set dropEnabled(value:Boolean):void| editableTabLabels | property |
editableTabLabels:BooleanBoolean indicating if tab labels can be edited. If true, the user can double click on a tab label and edit the label.
public function get editableTabLabels():Boolean public function set editableTabLabels(value:Boolean):void| SuperTabBar | () | Constructor |
public function SuperTabBar()Constructor
| getClosePolicyForTab | () | method |
public function getClosePolicyForTab(index:int):StringParameters
index:int |
String |
| getTabClass | () | method |
protected function getTabClass():ClassFor extensibility, if you extend <codeph>SuperTabBar</codeph> with a custom tab bar implementation, you can override the <codeph>getTabClass</codeph> function to return the class for the tabs that should be used. The class that you return must extend <codeph>flexlib.controls.tabBarClasses.SuperTab</codeph>.
ReturnsClass |
| initialize | () | method |
override public function initialize():void| resetTabs | () | method |
public function resetTabs():void| setClosePolicyForTab | () | method |
public function setClosePolicyForTab(index:int, value:String):voidParameters
index:int | |
value:String |
| updateNavItemIcon | () | method |
override protected function updateNavItemIcon(index:int, icon:Class):voidParameters
index:int | |
icon:Class |
| updateNavItemLabel | () | method |
override protected function updateNavItemLabel(index:int, label:String):voidParameters
index:int | |
label:String |
| tabClose | Event |
flexlib.events.SuperTabEventFired when the close button of a tab is clicked. To stop the default action, which will remove the child from the collection of children, call event.preventDefault() in your listener.
| tabsReordered | Event |
flexlib.events.TabReorderEventFired when a tab is dropped onto this SuperTabBar, which re-orders the tabs and updates the list of tabs.
| tabUpdated | Event |
flexlib.events.SuperTabEventFired when the the label or icon of a child is updated and the tab gets updated to reflect the new icon or label. SuperTabNavigator listens for this to refresh the PopUpMenuButton data provider.
| TABS_REORDERED | Constant |
public static const TABS_REORDERED:String = tabsReorderedEvent that is dispatched when the tabs are re-ordered in the SuperTabBar.