|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
javax.faces.application Class StateManagerWrapper
java.lang.Objectjavax.faces.application.StateManager
javax.faces.application.StateManagerWrapper
public abstract class StateManagerWrapper
- extends StateManager
提供 StateManager 的简单实现,开发人员可为其创建子类为现有 StateManager 实例提供专门行为。所有方法的默认实现是调用包装的 StateManager。
用法:扩展此类并重写 #getWrapped,以返回正在包装的实例。
| since | 1.2 |
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 override getWrapped() to
return the instance we are wrapping.
- Since:
- 1.2
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.faces.application.StateManager |
|---|
StateManager.SerializedView |
| Field Summary |
|---|
| Fields inherited from class javax.faces.application.StateManager |
|---|
STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER |
| Constructor Summary | |
|---|---|
StateManagerWrapper()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public
StateManagerWrapper()
英文文档:
StateManagerWrapper
public StateManagerWrapper()
| Method Detail |
|---|
abstract protected StateManager
getWrapped()
| return | 正在包装的实例。 |
getWrapped
protected abstract StateManager getWrapped()
- Returns:
- the instance that we are wrapping.
public StateManager.SerializedView
saveSerializedView(FacesContext context)
此方法的默认行为是调用包装的 StateManager 对象上的 saveSerializedView(javax.faces.context.FacesContext)。
| since | 1.2 |
| See also | saveSerializedView(javax.faces.context.FacesContext) |
saveSerializedView
public StateManager.SerializedView saveSerializedView(FacesContext context)
The default behavior of this method is to call
StateManager.saveSerializedView(javax.faces.context.FacesContext)on the wrappedStateManagerobject.- Overrides:
saveSerializedViewin classStateManager
- Parameters:
context-FacesContextfor the current request- Since:
- 1.2
- See Also:
StateManager.saveSerializedView(javax.faces.context.FacesContext)
public Object
saveView(FacesContext context)
此方法的默认行为是调用包装的 StateManager 对象上的 saveView(javax.faces.context.FacesContext)。
| since | 1.2 |
| See also | saveView(javax.faces.context.FacesContext) |
saveView
public Object saveView(FacesContext context)
The default behavior of this method is to call
StateManager.saveView(javax.faces.context.FacesContext)on the wrappedStateManagerobject.- Overrides:
saveViewin classStateManager
- Parameters:
context-FacesContextfor the current request- Since:
- 1.2
- See Also:
StateManager.saveView(javax.faces.context.FacesContext)
protected Object
getTreeStructureToSave(FacesContext context)
此方法的默认行为是调用包装的 StateManager 对象上的 getTreeStructureToSave(javax.faces.context.FacesContext)。
| since | 1.2 |
| See also | getTreeStructureToSave(javax.faces.context.FacesContext) |
getTreeStructureToSave
protected Object getTreeStructureToSave(FacesContext context)
The default behavior of this method is to call
StateManager.getTreeStructureToSave(javax.faces.context.FacesContext)on the wrappedStateManagerobject.- Overrides:
getTreeStructureToSavein classStateManager
- Parameters:
context-FacesContextfor the current request- Since:
- 1.2
- See Also:
StateManager.getTreeStructureToSave(javax.faces.context.FacesContext)
protected Object
getComponentStateToSave(FacesContext context)
此方法的默认行为是调用包装的 StateManager 对象上的 getComponentStateToSave(javax.faces.context.FacesContext)。
| since | 1.2 |
| See also | getComponentStateToSave(javax.faces.context.FacesContext) |
getComponentStateToSave
protected Object getComponentStateToSave(FacesContext context)
The default behavior of this method is to call
StateManager.getComponentStateToSave(javax.faces.context.FacesContext)on the wrappedStateManagerobject.- Overrides:
getComponentStateToSavein classStateManager
- Parameters:
context-FacesContextfor the current request- Since:
- 1.2
- See Also:
StateManager.getComponentStateToSave(javax.faces.context.FacesContext)
public void
writeState(FacesContext context, Object state) throws java.io.IOException
此方法的默认行为是调用包装的 StateManager 对象上的 writeState(javax.faces.context.FacesContext, java.lang.Object)。
| since | 1.2 |
| See also | writeState(javax.faces.context.FacesContext, java.lang.Object) |
writeState
public void writeState(FacesContext context, Object state) throws IOException
The default behavior of this method is to call
StateManager.writeState(javax.faces.context.FacesContext, java.lang.Object)on the wrappedStateManagerobject.- Overrides:
writeStatein classStateManager
- Parameters:
context-FacesContextfor the current requeststate- the Serializable state to be written, as returned byStateManager.saveSerializedView(javax.faces.context.FacesContext)- Throws:
IOException- Since:
- 1.2
- See Also:
StateManager.writeState(javax.faces.context.FacesContext, java.lang.Object)
public void
writeState(FacesContext context, StateManager.SerializedView state) throws java.io.IOException
此方法的默认行为是调用包装的 StateManager 对象上的 writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView)。
| since | 1.2 |
| See also | writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView) |
writeState
public void writeState(FacesContext context, StateManager.SerializedView state) throws IOException
The default behavior of this method is to call
StateManager.writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView)on the wrappedStateManagerobject.- Overrides:
writeStatein classStateManager
- Parameters:
context-FacesContextfor the current requeststate- the serialized state to be written- Throws:
IOException- Since:
- 1.2
- See Also:
StateManager.writeState(javax.faces.context.FacesContext, javax.faces.application.StateManager.SerializedView)
public UIViewRoot
restoreView(FacesContext context, String viewId, String renderKitId)
此方法的默认行为是调用包装的 StateManager 对象上的 restoreView(javax.faces.context.FacesContext, String, String)。
| since | 1.2 |
| See also | restoreView(javax.faces.context.FacesContext, String, String) |
restoreView
public UIViewRoot restoreView(FacesContext context, String viewId, String renderKitId)
The default behavior of this method is to call
StateManager.restoreView(javax.faces.context.FacesContext, String, String)on the wrappedStateManagerobject.- Specified by:
restoreViewin classStateManager
- Parameters:
context-FacesContextfor the current requestviewId- View identifier of the view to be restoredrenderKitId- the renderKitId used to render this response. Must not benull.- Since:
- 1.2
- See Also:
StateManager.restoreView(javax.faces.context.FacesContext, String, String)
protected UIViewRoot
restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
此方法的默认行为是调用包装的 StateManager 对象上的 restoreTreeStructure(javax.faces.context.FacesContext, String, String)。
| since | 1.2 |
| See also | restoreTreeStructure(javax.faces.context.FacesContext, String, String) |
restoreTreeStructure
protected UIViewRoot restoreTreeStructure(FacesContext context, String viewId, String renderKitId)
The default behavior of this method is to call
StateManager.restoreTreeStructure(javax.faces.context.FacesContext, String, String)on the wrappedStateManagerobject.- Overrides:
restoreTreeStructurein classStateManager
- Parameters:
context-FacesContextfor the current requestviewId- View identifier of the view to be restoredrenderKitId- the renderKitId used to render this response. Must not benull.- Since:
- 1.2
- See Also:
StateManager.restoreTreeStructure(javax.faces.context.FacesContext, String, String)
protected void
restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
此方法的默认行为是调用包装的 StateManager 对象上的 restoreComponentState(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot, String)}。
| since | 1.2 |
| See also | restoreComponentState(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot, String) |
restoreComponentState
protected void restoreComponentState(FacesContext context, UIViewRoot viewRoot, String renderKitId)
The default behavior of this method is to call
StateManager.restoreComponentState(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot, String)on the wrappedStateManagerobject.- Overrides:
restoreComponentStatein classStateManager
- Parameters:
context-FacesContextfor the current requestviewRoot-UIViewRootreturned by a previous call torestoreTreeStructure()renderKitId- the renderKitId used to render this response. Must not benull.- Since:
- 1.2
- See Also:
StateManager.restoreComponentState(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot, String)
public boolean
isSavingStateInClient(FacesContext context)
此方法的默认行为是调用包装的 StateManager 对象上的 isSavingStateInClient(javax.faces.context.FacesContext)。
| since | 1.2 |
| See also | isSavingStateInClient(javax.faces.context.FacesContext) |
isSavingStateInClient
public boolean isSavingStateInClient(FacesContext context)
The default behavior of this method is to call
StateManager.isSavingStateInClient(javax.faces.context.FacesContext)on the wrappedStateManagerobject.- Overrides:
isSavingStateInClientin classStateManager
- Returns:
trueif and only if the value of theServletContextinit parameter named by the value of the constantStateManager.STATE_SAVING_METHOD_PARAM_NAMEis equal to the value of the constantStateManager.STATE_SAVING_METHOD_CLIENT.falseotherwise.- Since:
- 1.2
- See Also:
StateManager.isSavingStateInClient(javax.faces.context.FacesContext)
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!
