| Package | com.degrafa.states |
| Class | public class StateManager |
| Property | Defined by | ||
|---|---|---|---|
| currentState : String
The current view state.
| StateManager | ||
| Method | Defined by | ||
|---|---|---|---|
|
StateManager(stateClient:IDegrafaStateClient)
Constructor.
| StateManager | ||
|
applyState(stateName:String, lastState:String):void
Applys the passed state.
| StateManager | ||
|
commitCurrentState():void
Commits the current state making it the active state.
| StateManager | ||
|
findCommonBaseState(state1:String, state2:String):String
Returns the name of the common base state shared between state1 and state2.
| StateManager | ||
|
getBaseStates(state:State):Array
Returns an array of base states
| StateManager | ||
|
Return the state object with the given name.
| StateManager | ||
|
initializeState(stateName:String):void
Initializes the passed state.
| StateManager | ||
|
isBaseState(stateName:String):Boolean
Returns true if the passed state is the base state.
| StateManager | ||
|
removeState(stateName:String, lastState:String):void
Removes the passed state from the collection of states.
| StateManager | ||
|
setCurrentState(stateName:String):void
Sets the current state for this view.
| StateManager | ||
| currentState | property |
currentState:String [read-write]The current view state.
Implementation public function get currentState():String
public function set currentState(value:String):void
| StateManager | () | constructor |
public function StateManager(stateClient:IDegrafaStateClient)Constructor.
ParametersstateClient:IDegrafaStateClient |
| applyState | () | method |
public function applyState(stateName:String, lastState:String):voidApplys the passed state. Making it the current state.
ParametersstateName:String |
|
lastState:String |
| commitCurrentState | () | method |
public function commitCurrentState():voidCommits the current state making it the active state.
| findCommonBaseState | () | method |
public function findCommonBaseState(state1:String, state2:String):StringReturns the name of the common base state shared between state1 and state2.
Parametersstate1:String |
|
state2:String |
String |
| getBaseStates | () | method |
public function getBaseStates(state:State):ArrayReturns an array of base states
Parametersstate:State |
Array |
| getState | () | method |
public function getState(stateName:String):StateReturn the state object with the given name.
ParametersstateName:String |
State |
| initializeState | () | method |
public function initializeState(stateName:String):voidInitializes the passed state.
ParametersstateName:String |
| isBaseState | () | method |
public function isBaseState(stateName:String):BooleanReturns true if the passed state is the base state.
ParametersstateName:String |
Boolean |
| removeState | () | method |
public function removeState(stateName:String, lastState:String):voidRemoves the passed state from the collection of states.
ParametersstateName:String |
|
lastState:String |
| setCurrentState | () | method |
public function setCurrentState(stateName:String):voidSets the current state for this view.
ParametersstateName:String |