Provides a simple implementation of StateManager that can
be subclassed by developers wishing to provide specialized behavior
to an existing StateManager instance. The default
implementation of all methods is to call through to the wrapped
StateManager.
Usage: extend this class and push the implementation being wrapped to the
constructor and use getWrapped to access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private StateManager |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StateManagerWrapper(StateManager
The implementation being wrapped. wrapped)If this state manager has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| wrapped | back to summary |
|---|---|
| private StateManager wrapped | |
| StateManagerWrapper | back to summary |
|---|---|
| public StateManagerWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| StateManagerWrapper | back to summary |
|---|---|
| public StateManagerWrapper(StateManager wrapped) If this state manager has been decorated,
the implementation doing the decorating should push the implementation being wrapped to this constructor.
The
| |
| getComponentStateToSave | back to summary |
|---|---|
| protected Object getComponentStateToSave(FacesContext context) Overrides javax. The default behavior of this method is to
call
| |
| getTreeStructureToSave | back to summary |
|---|---|
| protected Object getTreeStructureToSave(FacesContext context) Overrides javax. The default behavior of this method is to
call
| |
| getViewState | back to summary |
|---|---|
| public String getViewState(FacesContext context) Overrides javax. The default behavior of this method
is to call
| |
| getWrapped | back to summary |
|---|---|
| public StateManager getWrapped() Implements javax. Doc from javax. A class that implements this interface uses this method to return an instance of the class being wrapped.
| |
| isSavingStateInClient | back to summary |
|---|---|
| public boolean isSavingStateInClient(FacesContext context) Overrides javax. The default behavior of this method is to
call
| |
| restoreComponentState | back to summary |
|---|---|
| protected void restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId) Overrides javax. The default behavior of this method is to
call
| |
| restoreView | back to summary |
|---|---|
| public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId) Implements abstract javax. The default behavior of this method is to
call
| |
| saveSerializedView | back to summary |
|---|---|
| public StateManager. Overrides javax. Deprecated as a consequence of The default behavior of this method is to
call
| |
| saveView | back to summary |
|---|---|
| public Object saveView(FacesContext context) Overrides javax. The default behavior of this method is to
call
| |
| writeState | back to summary |
|---|---|
| public void writeState(FacesContext context, Object state) throws IOException Overrides javax. The default behavior of this method is to call
| |