public class AttachedObjects<K,T> extends Object implements javax.faces.component.PartialStateHolder
| Constructor and Description |
|---|
AttachedObjects() |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachedObject(K key,
T obj)
Adds attached object to this collection.
|
void |
clearInitialState() |
List<T> |
getAttachedObjectList(K key)
Retrieves a non-null immutable list of objects for this key from the collection.
|
Map<K,List<T>> |
getAttachedObjectMap()
Retreives a map of objects contained in this collection.
|
boolean |
initialStateMarked() |
boolean |
isTransient() |
void |
markInitialState() |
boolean |
removeAttachedObject(K key,
T obj)
Removes an object from this collection
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state) |
Object |
saveState(javax.faces.context.FacesContext facesContext) |
void |
setTransient(boolean newTransientValue) |
public final void addAttachedObject(K key, T obj)
key - Object keyobj - Object valuepublic final boolean removeAttachedObject(K key, T obj)
key - Object keyobj - Object valuepublic final List<T> getAttachedObjectList(K key)
key - Key value shared by all the objects in the Listpublic final Map<K,List<T>> getAttachedObjectMap()
public void markInitialState()
markInitialState in interface javax.faces.component.PartialStateHolderpublic void clearInitialState()
clearInitialState in interface javax.faces.component.PartialStateHolderpublic boolean initialStateMarked()
initialStateMarked in interface javax.faces.component.PartialStateHolderpublic Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHolderpublic void restoreState(javax.faces.context.FacesContext facesContext,
Object state)
restoreState in interface javax.faces.component.StateHolderpublic boolean isTransient()
isTransient in interface javax.faces.component.StateHolderpublic void setTransient(boolean newTransientValue)
setTransient in interface javax.faces.component.StateHolderCopyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.