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.PartialStateHolder
public void clearInitialState()
clearInitialState
in interface javax.faces.component.PartialStateHolder
public boolean initialStateMarked()
initialStateMarked
in interface javax.faces.component.PartialStateHolder
public Object saveState(javax.faces.context.FacesContext facesContext)
saveState
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext facesContext, Object state)
restoreState
in interface javax.faces.component.StateHolder
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.