| Package | gs.managers |
| Class | public final class TabManager |
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.
| Method | Defined 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 | ||
| activate | () | method |
public static function activate(id:String, setFocusToFirst:Boolean = true):voidActivate a tab state.
Parametersid: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):BooleanWhether or not a state is defined with the specified id.
Parametersid:String — The tab state id.
|
Boolean |
| deactivate | () | method |
public static function deactivate():voidDeactivate the current tab state.
| set | () | method |
public static function set(id:String, ... objs):voidCreate's a new tab state.
Parametersid: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):voidUnset (delete) a tab state.
Parametersid:String — The tab state id.
|