Packagecom.whirled.contrib.avrg.probe
Classpublic class TabPanel
InheritanceTabPanel Inheritance flash.display.Sprite

Displays a sequence of buttons along the top and makes a different child visible in the central part when each button is pressed.



Protected Properties
 PropertyDefined by
  _selected : Tab
TabPanel
  _tabs : Array
TabPanel
Public Methods
 MethodDefined by
  
addTab(name:String, button:Button, contents:DisplayObject):void
Adds a new tab.
TabPanel
  
selectTab(name:String):void
Selects a tab by name.
TabPanel
Protected Methods
 MethodDefined by
  
TabPanel
Property detail
_selectedproperty
protected var _selected:Tab
_tabsproperty 
protected var _tabs:Array
Method detail
addTab()method
public function addTab(name:String, button:Button, contents:DisplayObject):void

Adds a new tab.

Parameters
name:String — identifies the tab for later selection
 
button:Button — the button to place in the top row that will select the contents when pressed
 
contents:DisplayObject — the object to show when the button is pressed
handleButtonClick()method 
protected function handleButtonClick(event:ButtonEvent):voidParameters
event:ButtonEvent
selectTab()method 
public function selectTab(name:String):void

Selects a tab by name.

Parameters
name:String