| Modifier and Type | Field and Description |
|---|---|
| private UIComponent | |
| private Map | |
| private Map | |
| private boolean | |
| private Map |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(Serializable
the key for which the value should be returned. key, Object the value to add value)Implements javax. Store the specified
|
| public Object | eval(Serializable
the name of the value in the internal map, or the name
of a value expression in the components value expression
collection. key)Implements javax. Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found. |
| public Object | eval(Serializable
the key for which the value should be returned. key, Object the value to return if no value is found in
the call to defaultValue)eval().Implements javax. Performs the same logic as |
| public Object | get(Serializable key)
Implements javax. |
| public Object | getTransient(Object
the key for which the value should be returned. key)Implements javax. Return the value currently
associated with the specified |
| public Object | getTransient(Object
the key for which the value should be returned. key, Object the value to return if no value is found in
the call to defaultValue)get().Implements javax. Performs the same logic as |
| private void | |
| public boolean | isTransient()
Implements javax. If true, the Object implementing this interface must not participate in state saving or restoring. |
| public Object | Returns: the original value in the delta-map, if not present, the old value in the main mapImplements javax. |
| public Object | put(Serializable
the key of the map itself key, String the key within the internal map mapKey, Object the value for the key in the internal map value)Implements javax. Store the specified
|
| public Object | putTransient(Object
the key for the value key, Object the value value)Implements javax. Return the previously stored value and store the specified key/value pair. |
| public Object | Returns: the removed object in the delta-map. if not present, the removed object from the main mapImplements javax. |
| public Object | remove(Serializable
the key of in the inner data structure whose value is
a key, Object Collection or Mapthe value or key to be removed. valueOrKey)Implements javax. Remove a value from the inner data structure. |
| private Object | |
| private Object | |
| public void | restoreState(FacesContext
FacesContext context, Object the state to be restored. state)Implements javax. |
| public void | restoreTransientState(FacesContext
the Faces context context, Object the object containing transient values state)Implements javax. Restore the "transient state" using the object passed as state. |
| private Object | |
| public Object | Returns: the saved stateImplements javax. |
| public Object | saveTransientState(FacesContext
the Faces context. context)Implements javax. Return the object containing related "transient states". |
| public void | setTransient(boolean
boolean pass newTransientValue)true if this
Object will not
participate in state saving or restoring, otherwise pass
false.Implements javax. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring. |
| component | back to summary |
|---|---|
| private UIComponent component | |
| defaultMap | back to summary |
|---|---|
| private Map<Serializable, Object> defaultMap | |
| deltaMap | back to summary |
|---|---|
| private Map<Serializable, Object> deltaMap | |
| isTransient | back to summary |
|---|---|
| private boolean isTransient | |
| transientState | back to summary |
|---|---|
| private Map<Object, Object> transientState | |
| ComponentStateHelper | back to summary |
|---|---|
| public ComponentStateHelper(UIComponent component) | |
| add | back to summary |
|---|---|
| public void add(Serializable key, Object value) Implements javax. Doc from javax. Store the specified
It's important to note for delta
tracking that any modifications to the internal
| |
| eval | back to summary |
|---|---|
| public Object eval(Serializable key) Implements javax. Doc from javax. Attempts to find a value associated with the specified key, using the value expression collection from the component if no such value is found.
| |
| eval | back to summary |
|---|---|
| public Object eval(Serializable key, Object defaultValue) Implements javax. Doc from javax. Performs the same logic as
| |
| get | back to summary |
|---|---|
| public Object get(Serializable key) Implements javax. Get the object from the main-map. As everything is written through from the delta-map to the main-map, this should be enough.
| |
| getTransient | back to summary |
|---|---|
| public Object getTransient(Object key) Implements javax. Doc from javax. Return the value currently
associated with the specified | |
| getTransient | back to summary |
|---|---|
| public Object getTransient(Object key, Object defaultValue) Implements javax. Doc from javax. Performs the same logic as | |
| handleAttribute | back to summary |
|---|---|
| private void handleAttribute(String name, Object value) | |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements javax. Doc from javax. If true, the Object implementing this interface must not participate in state saving or restoring.
| |
| put | back to summary |
|---|---|
| public Object put(Serializable key, Object value) Implements javax. Put the object in the main-map and/or the delta-map, if necessary. | |
| put | back to summary |
|---|---|
| public Object put(Serializable key, String mapKey, Object value) Implements javax. Doc from javax. Store the specified
It's important to note for delta tracking that any
modifications to the internal
| |
| putTransient | back to summary |
|---|---|
| public Object putTransient(Object key, Object value) Implements javax. Doc from javax. Return the previously stored value and store the specified key/value pair. This is intended to store data that would otherwise reside in an instance variable on the component. | |
| remove | back to summary |
|---|---|
| public Object remove(Serializable key) Implements javax. We need to remove from both maps, if we do remove an existing key. | |
| remove | back to summary |
|---|---|
| public Object remove(Serializable key, Object valueOrKey) Implements javax. Doc from javax. Remove a value from the inner data
structure. Look in the inner data structure for the value at the
given
| |
| removeFromList | back to summary |
|---|---|
| private Object removeFromList(Serializable key, Object value) | |
| removeFromMap | back to summary |
|---|---|
| private Object removeFromMap(Serializable key, String mapKey) | |
| restoreState | back to summary |
|---|---|
| public void restoreState(FacesContext context, Object state) Implements javax. One and only implementation of restore state. Makes all other implementations unnecessary.
| |
| restoreTransientState | back to summary |
|---|---|
| public void restoreTransientState(FacesContext context, Object state) Implements javax. Doc from javax. Restore the "transient state" using the object passed as state. If the
| |
| saveMap | back to summary |
|---|---|
| private Object saveMap(FacesContext context, Map<Serializable, Object> map) | |
| saveState | back to summary |
|---|---|
| public Object saveState(FacesContext context) Implements javax. One and only implementation of save-state - makes all other implementations unnecessary. | |
| saveTransientState | back to summary |
|---|---|
| public Object saveTransientState(FacesContext context) Implements javax. Doc from javax. Return the object containing related "transient states". that could be used later to restore the "transient state".
| |
| setTransient | back to summary |
|---|---|
| public void setTransient(boolean newTransientValue) Implements javax. Doc from javax. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.
| |