| 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 jakarta.
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 jakarta. 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 jakarta.
Performs the same logic as |
| public Object | eval(Serializable
the key for which the value should be returned. key, Supplier<Object> the supplier used to evaluate the default value if no value is found in the call to defaultValueSupplier)eval().Implements jakarta.
Performs the same logic as |
| public Object | get(Serializable key)
Implements jakarta. |
| public Object | getTransient(Object
the key for which the value should be returned. key)Implements jakarta.
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 jakarta.
Performs the same logic as |
| private void | |
| private void | |
| private void | |
| public boolean | isTransient()
Implements jakarta. 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 jakarta. |
| 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 jakarta.
Store the specified |
| public Object | putTransient(Object
the key for the value key, Object the value value)Implements jakarta. 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 jakarta. |
| 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 jakarta. 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 jakarta. |
| public void | restoreTransientState(FacesContext
the Faces context context, Object the object containing transient values state)Implements jakarta. Restore the "transient state" using the object passed as state. |
| private Object | |
| public Object | Returns: the saved stateImplements jakarta. |
| public Object | saveTransientState(FacesContext
the Faces context. context)Implements jakarta. 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 jakarta. 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 jakarta. Doc from jakarta.
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 jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta.
Performs the same logic as
| |
| eval | back to summary |
|---|---|
| public Object eval(Serializable key, Supplier<Object> defaultValueSupplier) Implements jakarta. Doc from jakarta.
Performs the same logic as
| |
| get | back to summary |
|---|---|
| public Object get(Serializable key) Implements jakarta. 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 jakarta. Doc from jakarta.
Return the value currently associated with the specified | |
| getTransient | back to summary |
|---|---|
| public Object getTransient(Object key, Object defaultValue) Implements jakarta. Doc from jakarta.
Performs the same logic as | |
| handleAttribute | back to summary |
|---|---|
| private void handleAttribute(String name, Object value) | |
| initList | back to summary |
|---|---|
| private void initList(Serializable key) | |
| initMap | back to summary |
|---|---|
| private void initMap(Serializable key) | |
| isTransient | back to summary |
|---|---|
| public boolean isTransient() Implements jakarta. Doc from jakarta. 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 jakarta. 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 jakarta. Doc from jakarta.
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 jakarta. Doc from jakarta. 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 jakarta. 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 jakarta. Doc from jakarta.
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 jakarta. One and only implementation of restore state. Makes all other implementations unnecessary.
| |
| restoreTransientState | back to summary |
|---|---|
| public void restoreTransientState(FacesContext context, Object state) Implements jakarta. Doc from jakarta. 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 jakarta. One and only implementation of save-state - makes all other implementations unnecessary. | |
| saveTransientState | back to summary |
|---|---|
| public Object saveTransientState(FacesContext context) Implements jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. Denotes whether or not the Object implementing this interface must or must not participate in state saving or restoring.
| |