public class State
extends java.lang.Object
Constructor and Description |
---|
State(javax.faces.component.StateHelper stateHelper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.io.Serializable key)
Attempts to find a value associated with the specified key in the component's state.
|
<T> T |
get(java.io.Serializable key,
java.lang.Object defaultValue)
Attempts to find a value associated with the specified key in the component's state.
|
<T> T |
put(java.io.Serializable key,
T value)
Puts a value in the component's state and returns the previous value.
|
public <T> T get(java.io.Serializable key)
See StateHelper.eval(Serializable)
key
- the name of the value in component's statepublic <T> T get(java.io.Serializable key, java.lang.Object defaultValue)
See StateHelper.eval(Serializable, Object)
key
- the name of the value in component's statedefaultValue
- the value to return if no value is found in the call to get()public <T> T put(java.io.Serializable key, T value)
See StateHelper.put(Serializable, Object)
key
- value
-