| Package | com.rubenswieringa.managers |
| Class | public class StateManager |
| Property | Defined by | ||
|---|---|---|---|
| instance : StateManager
[static][read-only]
Singleton instance.
| StateManager | ||
| items : Array [read-only]
Array with all items registered with this class.
| StateManager | ||
| LAST_STATE : int [static][read-only]
A reference to the last state (known to the StateManager class) a registered component can be in.
| StateManager | ||
| Method | Defined by | ||
|---|---|---|---|
|
Constructor.
| StateManager | ||
|
getState(item:UIComponent):int
Returns a numeric value corresponding to one of the the constants in the StateManager class.
| StateManager | ||
|
register(item:UIComponent):void
Registers the provided UIComponent with this StateManager so that the component its state will be available through the getState method.
| StateManager | ||
| Constant | Defined by | ||
|---|---|---|---|
| BABY : int = -1 [static]
Indicates that a component has not reached the first state yet.
| StateManager | ||
| CREATION_COMPLETE : int = 2 [static]
State indicating that a component has finished its construction, property processing, measuring, layout, and drawing.
| StateManager | ||
| INITIALIZE : int = 1 [static]
State indicating that a component has finished its construction and has all initialization properties set.
| StateManager | ||
| PREINITIALIZE : int = 0 [static]
State indicating that a component has begun with its initialization sequence.
| StateManager | ||
| UPDATE_COMPLETE : int = 3 [static]
State indicating that a component has had its commitProperties(), measure(), and updateDisplayList() methods called.
| StateManager | ||
| instance | property |
instance:StateManager [read-only]Singleton instance.
Implementation public static function get instance():StateManager
| items | property |
items:Array [read-only]Array with all items registered with this class.
Implementation public function get items():Array
| LAST_STATE | property |
LAST_STATE:int [read-only]A reference to the last state (known to the StateManager class) a registered component can be in.
Implementation public static function get LAST_STATE():int
| StateManager | () | constructor |
public function StateManager()Constructor.
| getState | () | method |
public function getState(item:UIComponent):intReturns a numeric value corresponding to one of the the constants in the StateManager class.
Parametersitem:UIComponent — Component of which to return the current state.
|
int — Value indicating the current state of the provided UIComponent.
|
| register | () | method |
public function register(item:UIComponent):voidRegisters the provided UIComponent with this StateManager so that the component its state will be available through the getState method.
Parametersitem:UIComponent — Component to register.
|
See also
| BABY | constant |
public static const BABY:int = -1Indicates that a component has not reached the first state yet.
| CREATION_COMPLETE | constant |
public static const CREATION_COMPLETE:int = 2State indicating that a component has finished its construction, property processing, measuring, layout, and drawing.
| INITIALIZE | constant |
public static const INITIALIZE:int = 1State indicating that a component has finished its construction and has all initialization properties set.
| PREINITIALIZE | constant |
public static const PREINITIALIZE:int = 0State indicating that a component has begun with its initialization sequence.
| UPDATE_COMPLETE | constant |
public static const UPDATE_COMPLETE:int = 3State indicating that a component has had its commitProperties(), measure(), and updateDisplayList() methods called.