|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.mindmatters.faces.component.GenericStateHolder
This class should be used as superclass for classes that need to save their state between requests.
A subclass must not override both saveState(javax.faces.context.FacesContext)
and
restoreState(javax.faces.context.FacesContext, java.lang.Object)
methods in this class, since this class
serializes/deserializes it's state in a generic way (by accessing the
declared fields directly within a class hierarchy). Fields to
serialize/deserialize must be non-transient and non-static.
StateHolderStateBuilder.saveState(FacesContext)
,
StateHolderStateBuilder.restoreState(FacesContext, Object)
Constructor Summary | |
GenericStateHolder()
|
Method Summary | |
boolean |
isTransient()
|
void |
restoreState(FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(FacesContext context)
|
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 GenericStateHolder()
Method Detail |
public final java.lang.Object saveState(FacesContext context)
saveState
in interface StateHolder
public final void restoreState(FacesContext context, java.lang.Object state)
restoreState
in interface StateHolder
public final boolean isTransient()
isTransient
in interface StateHolder
public final void setTransient(boolean newTransientValue)
setTransient
in interface StateHolder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |