|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.util.State
public class State
Helper class for StateHelper that uses generic type-inference to make code that uses the StateHelper slightly less verbose.
Constructor Summary | |
---|---|
State(javax.faces.component.StateHelper stateHelper)
|
Method Summary | ||
---|---|---|
|
get(java.io.Serializable key)
Attempts to find a value associated with the specified key in the component's state. |
|
|
get(java.io.Serializable key,
java.lang.Object defaultValue)
Attempts to find a value associated with the specified key in the component's state. |
|
|
put(java.io.Serializable key,
T value)
Puts a value in the component's state and returns the previous value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public State(javax.faces.component.StateHelper stateHelper)
Method Detail |
---|
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
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |