|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.faces.application Class ViewHandlerWrapper
java.lang.Object javax.faces.application.ViewHandler javax.faces.application.ViewHandlerWrapper
public abstract class ViewHandlerWrapper
- extends ViewHandler
提供 ViewHandler
的简单实现,开发人员可为其创建子类为现有 ViewHandler
实例提供专门行为。所有方法的默认实现是调用包装的 ViewHandler
。
用法:扩展此类并重写 #getWrapped
,以返回正在包装的实例。
since | 1.2 |
Provides a simple implementation of ViewHandler
that can
be subclassed by developers wishing to provide specialized behavior
to an existing ViewHandler
instance. The default
implementation of all methods is to call through to the wrapped
ViewHandler
.
Usage: extend this class and override getWrapped()
to
return the instance we are wrapping.
- Since:
- 1.2
Field Summary |
---|
Fields inherited from class javax.faces.application.ViewHandler |
---|
CHARACTER_ENCODING_KEY, DEFAULT_SUFFIX, DEFAULT_SUFFIX_PARAM_NAME |
Constructor Summary | |
---|---|
ViewHandlerWrapper()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public
ViewHandlerWrapper()
英文文档:
ViewHandlerWrapper
public ViewHandlerWrapper()
Method Detail |
---|
abstract protected ViewHandler
getWrapped()
return | 正在包装的实例。 |
getWrapped
protected abstract ViewHandler getWrapped()
- Returns:
- the instance that we are wrapping.
public String
calculateCharacterEncoding(FacesContext context)
此方法的默认行为是调用包装的 ViewHandler
对象上的 calculateCharacterEncoding(javax.faces.context.FacesContext)
。
since | 1.2 |
See also | calculateCharacterEncoding(javax.faces.context.FacesContext) |
calculateCharacterEncoding
public String calculateCharacterEncoding(FacesContext context)
The default behavior of this method is to call
ViewHandler.calculateCharacterEncoding(javax.faces.context.FacesContext)
on the wrappedViewHandler
object.- Overrides:
calculateCharacterEncoding
in classViewHandler
- Since:
- 1.2
- See Also:
ViewHandler.calculateCharacterEncoding(javax.faces.context.FacesContext)
public java.util.Locale
calculateLocale(FacesContext context)
此方法的默认行为是调用包装的 ViewHandler
对象上的 calculateLocale(javax.faces.context.FacesContext)
。
since | 1.2 |
See also | calculateLocale(javax.faces.context.FacesContext) |
calculateLocale
public Locale calculateLocale(FacesContext context)
The default behavior of this method is to call
ViewHandler.calculateLocale(javax.faces.context.FacesContext)
on the wrappedViewHandler
object.- Specified by:
calculateLocale
in classViewHandler
- Parameters:
context
-FacesContext
for the current request- Since:
- 1.2
- See Also:
ViewHandler.calculateLocale(javax.faces.context.FacesContext)
public String
calculateRenderKitId(FacesContext context)
此方法的默认行为是调用包装的 ViewHandler
对象上的 calculateRenderKitId(javax.faces.context.FacesContext)
。
since | 1.2 |
See also | calculateRenderKitId(javax.faces.context.FacesContext) |
calculateRenderKitId
public String calculateRenderKitId(FacesContext context)
The default behavior of this method is to call
ViewHandler.calculateRenderKitId(javax.faces.context.FacesContext)
on the wrappedViewHandler
object.- Specified by:
calculateRenderKitId
in classViewHandler
- Parameters:
context
-FacesContext
for the current request- Since:
- 1.2
- See Also:
ViewHandler.calculateRenderKitId(javax.faces.context.FacesContext)
public UIViewRoot
createView(FacesContext context, String viewId)
此方法的默认行为是调用包装的 ViewHandler
对象上的 createView(javax.faces.context.FacesContext, String)
。
since | 1.2 |
See also | createView(javax.faces.context.FacesContext, String) |
createView
public UIViewRoot createView(FacesContext context, String viewId)
The default behavior of this method is to call
ViewHandler.createView(javax.faces.context.FacesContext, String)
on the wrappedViewHandler
object.- Specified by:
createView
in classViewHandler
- Since:
- 1.2
- See Also:
ViewHandler.createView(javax.faces.context.FacesContext, String)
public String
getActionURL(FacesContext context, String viewId)
此方法的默认行为是调用包装的 ViewHandler
对象上的 getActionURL(javax.faces.context.FacesContext, String)
。
since | 1.2 |
See also | getActionURL(javax.faces.context.FacesContext, String) |
getActionURL
public String getActionURL(FacesContext context, String viewId)
The default behavior of this method is to call
ViewHandler.getActionURL(javax.faces.context.FacesContext, String)
on the wrappedViewHandler
object.- Specified by:
getActionURL
in classViewHandler
- Parameters:
context
-FacesContext
for this requestviewId
- View identifier of the desired view- Since:
- 1.2
- See Also:
ViewHandler.getActionURL(javax.faces.context.FacesContext, String)
public String
getResourceURL(FacesContext context, String path)
此方法的默认行为是调用包装的 ViewHandler
对象上的 getResourceURL(javax.faces.context.FacesContext, String)
。
since | 1.2 |
See also | getResourceURL(javax.faces.context.FacesContext, String) |
getResourceURL
public String getResourceURL(FacesContext context, String path)
The default behavior of this method is to call
ViewHandler.getResourceURL(javax.faces.context.FacesContext, String)
on the wrappedViewHandler
object.- Specified by:
getResourceURL
in classViewHandler
- Parameters:
context
-FacesContext
for the current requestpath
- Resource path to convert to a URL- Since:
- 1.2
- See Also:
ViewHandler.getResourceURL(javax.faces.context.FacesContext, String)
public void
initView(FacesContext context) throws FacesException
此方法的默认行为是调用包装的 ViewHandler
对象上的 ViewHandler#initView
。
since | 1.2 |
See also | initView |
initView
public void initView(FacesContext context) throws FacesException
The default behavior of this method is to call
ViewHandler.initView(javax.faces.context.FacesContext)
on the wrappedViewHandler
object.- Overrides:
initView
in classViewHandler
- Throws:
FacesException
- if a problem occurs setting the encoding, such as theUnsupportedEncodingException
thrown by the underlying Servlet or Portlet technology when the encoding is not supported.- Since:
- 1.2
- See Also:
ViewHandler.initView(javax.faces.context.FacesContext)
public void
renderView(FacesContext context, UIViewRoot viewToRender) throws java.io.IOException, FacesException
此方法的默认行为是调用包装的 ViewHandler
对象上的 renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
。
since | 1.2 |
See also | renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot) |
renderView
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException
The default behavior of this method is to call
ViewHandler.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
on the wrappedViewHandler
object.- Specified by:
renderView
in classViewHandler
- Parameters:
context
-FacesContext
for the current requestviewToRender
- the view to render- Throws:
IOException
- if an input/output error occursFacesException
- if a servlet error occurs- Since:
- 1.2
- See Also:
ViewHandler.renderView(javax.faces.context.FacesContext, javax.faces.component.UIViewRoot)
public UIViewRoot
restoreView(FacesContext context, String viewId)
此方法的默认行为是调用包装的 ViewHandler
对象上的 restoreView(javax.faces.context.FacesContext, String)
。
since | 1.2 |
See also | restoreView(javax.faces.context.FacesContext, String) |
restoreView
public UIViewRoot restoreView(FacesContext context, String viewId)
The default behavior of this method is to call
ViewHandler.restoreView(javax.faces.context.FacesContext, String)
on the wrappedViewHandler
object.- Specified by:
restoreView
in classViewHandler
- Parameters:
context
-FacesContext
for the current requestviewId
- the view identifier for the current request- Since:
- 1.2
- See Also:
ViewHandler.restoreView(javax.faces.context.FacesContext, String)
public void
writeState(FacesContext context) throws java.io.IOException
此方法的默认行为是调用包装的 ViewHandler
对象上的 writeState(javax.faces.context.FacesContext)
。
since | 1.2 |
See also | writeState(javax.faces.context.FacesContext) |
writeState
public void writeState(FacesContext context) throws IOException
The default behavior of this method is to call
ViewHandler.writeState(javax.faces.context.FacesContext)
on the wrappedViewHandler
object.- Specified by:
writeState
in classViewHandler
- Parameters:
context
-FacesContext
for the current request- Throws:
IOException
- if an input/output error occurs- Since:
- 1.2
- See Also:
ViewHandler.writeState(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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!