|
Préférences
Moteurs de recherche
|
|||||||||||||||||||
JavaTM Platform, Enterprise Edition, v 5.0
javax.faces.render
|
Field Summary | |
---|---|
static String |
HTML_BASIC_RENDER_KIT
The render kit identifier of the default RenderKit instance
for this JavaServer Faces implementation. |
Constructor Summary | |
---|---|
RenderKitFactory()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String HTML_BASIC_RENDER_KIT
The render kit identifier of the default RenderKit
instance
for this JavaServer Faces implementation.
Constructor Detail |
---|
public RenderKitFactory()
Method Detail |
---|
public 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.
renderKitId
- Identifier of the RenderKit
to registerrenderKit
- RenderKit
instance that we are registering
NullPointerException
- if renderKitId
or
renderKit
is null
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 specified FacesContext
, if
non-null
. If there is no registered RenderKit
for the specified identifier, return
null
. The set of available render kit identifiers
is available via the getRenderKitIds()
method.
context
- FacesContext for the request currently being
processed, or null
if none is available.renderKitId
- Render kit identifier of the requested
RenderKit
instance
IllegalArgumentException
- if no RenderKit
instance
can be returned for the specified identifier
NullPointerException
- if renderKitId
is
null
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 by RenderKitFactory.HTML_BASIC_RENDER_KIT
.