Packagegs.managers
Classpublic final class TabManager

The TabManager class manages tab indexes.

Tab management in flash is flat; which means that no display object can have the same tab index.

This allows you to set a state which consists of any objects you want. Then you can activate, or deactivate those states.

For some reason the Flash components don't adhere to what the "tabIndex" property means. Even setting tabEnabled=false on components causes problems with this tab manager.

Examples are in the guttershark repository.



Public Methods
 MethodDefined by
  
activate(id:String, setFocusToFirst:Boolean = true):void
[static] Activate a tab state.
TabManager
  
contains(id:String):Boolean
[static] Whether or not a state is defined with the specified id.
TabManager
  
deactivate():void
[static] Deactivate the current tab state.
TabManager
  
set(id:String, ... objs):void
[static] Create's a new tab state.
TabManager
  
unset(id:String):void
[static] Unset (delete) a tab state.
TabManager
Method detail
activate()method
public static function activate(id:String, setFocusToFirst:Boolean = true):void

Activate a tab state.

Parameters
id:String — The unique tab state id.
 
setFocusToFirst:Boolean (default = true) — Whether or not to set the stage.focus property to the first item in the given tab state.
contains()method 
public static function contains(id:String):Boolean

Whether or not a state is defined with the specified id.

Parameters
id:String — The tab state id.

Returns
Boolean
deactivate()method 
public static function deactivate():void

Deactivate the current tab state.

set()method 
public static function set(id:String, ... objs):void

Create's a new tab state.

Parameters
id:String — A unique id to identify this tab state.
 
... objs — An array of objects, tab order is defined by order of elements in array.
unset()method 
public static function unset(id:String):void

Unset (delete) a tab state.

Parameters
id:String — The tab state id.