public class State extends Object
Constructor and Description |
---|
State(javax.faces.component.StateHelper stateHelper) |
Modifier and Type | Method and Description |
---|---|
<T> T |
get(Serializable key)
Attempts to find a value associated with the specified key in the component's state.
|
<T> T |
get(Serializable key,
Object defaultValue)
Attempts to find a value associated with the specified key in the component's state.
|
<T> T |
put(Serializable key,
T value)
Puts a value in the component's state and returns the previous value.
|
public <T> T get(Serializable key)
See StateHelper.eval(Serializable)
key
- the name of the value in component's statepublic <T> T get(Serializable key, 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(Serializable key, T value)
See StateHelper.put(Serializable, Object)
key
- value
- Copyright © 2012–2014 OmniFaces. All rights reserved.