|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidad.bean.AttachedObjects<K,T>
public class AttachedObjects<K,T>
Class for managing attached object on the component that are maintained as a Map of Lists
Constructor Summary | |
---|---|
AttachedObjects()
|
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttachedObjects()
Method Detail |
---|
public final void addAttachedObject(K key, T obj)
key
- Object keyobj
- Object valuepublic final boolean removeAttachedObject(K key, T obj)
key
- Object keyobj
- Object value
public final List<T> getAttachedObjectList(K key)
key
- Key value shared by all the objects in the List
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |