org.apache.myfaces.trinidad.bean
Class SillyStateHolder
java.lang.Object
org.apache.myfaces.trinidad.bean.SillyStateHolder
- All Implemented Interfaces:
- javax.faces.component.StateHolder
public class SillyStateHolder
- extends java.lang.Object
- implements javax.faces.component.StateHolder
A silly StateHolder implementation that will increment itself
by one when its state is saved, and one more when its state
is restored. So, after a round trip, the original instance will
be at 1, and the new instance at 2.
|
Method Summary |
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean newTransientValue)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SillyStateHolder
public SillyStateHolder()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState in interface javax.faces.component.StateHolder
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState in interface javax.faces.component.StateHolder
isTransient
public boolean isTransient()
- Specified by:
isTransient in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean newTransientValue)
- Specified by:
setTransient in interface javax.faces.component.StateHolder
Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.