public interface ViewStateMachine
| Modifier and Type | Interface and Description |
|---|---|
static interface |
ViewStateMachine.State
Defines a get current state method
|
static interface |
ViewStateMachine.TransitionState
Defines a get current transition state method
|
| Modifier and Type | Method and Description |
|---|---|
ViewStateMachine.State |
apply(ViewStateMachine.TransitionState transition)
It changes the current state according to the provided transition state and returns
the previous state.
|
void |
init(ViewStateMachine.State current)
It initializes the current state.
|
void |
stateMachine(boolean[] newState)
Sets the state of the components according to the encoded array.
|
void |
stateMachine(boolean[] which,
boolean[] newState)
Selectively sets the state of the components according to the encoded
array.
|
boolean[] |
stateMachineModal(boolean[] which,
boolean[] newState)
Selectively sets the state of the components according to the encoded
array and returns the array of the saved current state.
|
ViewStateMachine.State apply(ViewStateMachine.TransitionState transition)
transition - The provided transition statevoid init(ViewStateMachine.State current)
current - The current initial statevoid stateMachine(boolean[] newState)
newState - array of boolean states, one per component, in a predefined
order. true means enabled.void stateMachine(boolean[] which,
boolean[] newState)
which - array of booleans acting as a mask,one boolean per component.
true means component changes state as specified
in newState array.newState - array of boolean states, one per component, in a predefined
order. true means enabled.boolean[] stateMachineModal(boolean[] which,
boolean[] newState)
which - array of booleans acting as a mask,one boolean per component.
true means component changes state as specified
in newState array.newState - array of boolean states, one per component, in a predefined
order. true means enabled.