|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.faces.render Class RenderKitFactory
java.lang.Object javax.faces.render.RenderKitFactory
public abstract class RenderKitFactory
- extends Object
RenderKitFactory is a factory object that registers
and returns RenderKit
instances. Implementations of
JavaServer Faces must provide at least a default implementation of
RenderKit
. Advanced implementations (or external third party
libraries) may provide additional RenderKit
implementations
(keyed by render kit identifiers) for performing different types of
rendering for the same components.
There must be one RenderKitFactory
instance per web
application that is utilizing JavaServer Faces. This instance can be
acquired, in a portable manner, by calling:
RenderKitFactory factory = (RenderKitFactory) FactoryFinder.getFactory(FactoryFinder.RENDER_KIT_FACTORY);
字段摘要 | |
---|---|
static String |
HTML_BASIC_RENDER_KIT
The render kit identifier of the default RenderKit instance
for this JavaServer Faces implementation. |
构造器摘要 | |
---|---|
RenderKitFactory()
|
方法摘要 | |
---|---|
abstract void |
addRenderKit(String renderKitId,
RenderKit renderKit)
Register the specified RenderKit instance, associated with
the specified renderKitId , to be supported by this
RenderKitFactory , replacing any previously registered
RenderKit for this identifier. |
abstract RenderKit |
getRenderKit(FacesContext context,
String renderKitId)
Return a RenderKit instance for the specified render
kit identifier, possibly customized based on dynamic
characteristics of the specified FacesContext , if
non-null . |
abstract Iterator<String> |
getRenderKitIds()
Return an Iterator over the set of render kit
identifiers registered with this factory. |
类方法继承 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
HTML_BASIC_RENDER_KIT
public static final String HTML_BASIC_RENDER_KIT
The render kit identifier of the default
RenderKit
instance for this JavaServer Faces implementation.- 另请参见:
- 常量字段
构造器详细信息 |
---|
RenderKitFactory
public RenderKitFactory()
方法详细信息 |
---|
addRenderKit
public abstract void addRenderKit(String renderKitId, RenderKit renderKit)
Register the specified
RenderKit
instance, associated with the specifiedrenderKitId
, to be supported by thisRenderKitFactory
, replacing any previously registeredRenderKit
for this identifier.- 参数:
renderKitId
- Identifier of theRenderKit
to registerrenderKit
-RenderKit
instance that we are registering- 抛出异常:
NullPointerException
- ifrenderKitId
orrenderKit
isnull
getRenderKit
public abstract RenderKit getRenderKit(FacesContext context, String renderKitId)
Return a
RenderKit
instance for the specified render kit identifier, possibly customized based on dynamic characteristics of the specifiedFacesContext
, if non-null
. If there is no registeredRenderKit
for the specified identifier, returnnull
. The set of available render kit identifiers is available via thegetRenderKitIds()
method.- 参数:
context
- FacesContext for the request currently being processed, ornull
if none is available.renderKitId
- Render kit identifier of the requestedRenderKit
instance- 抛出异常:
IllegalArgumentException
- if noRenderKit
instance can be returned for the specified identifierNullPointerException
- ifrenderKitId
isnull
getRenderKitIds
public abstract Iterator<String> getRenderKitIds()
Return an
Iterator
over the set of render kit identifiers registered with this factory. This set must include the value specified byRenderKitFactory.HTML_BASIC_RENDER_KIT
.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.