|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.RenderKit
RenderKit represents a collection of
Renderer instances that, together, know how to render
JavaServer Faces UIComponent instances for a specific
client. Typically, RenderKits are specialized for
some combination of client device type, markup language, and/or
user Locale. A RenderKit also acts as
a Factory for associated Renderer instances, which perform the
actual rendering process for each component.
A typical JavaServer Faces implementation will configure one or more
RenderKit instances at web application startup. They are
made available through calls to the getRenderKit() methods
of RenderKitFactory. Because RenderKit instances
are shared, they must be implemented in a thread-safe manner.
| Constructor Summary | |
RenderKit()
|
|
| Method Summary | |
abstract void |
addRenderer(java.lang.String rendererType,
Renderer renderer)
Add a new Renderer instance, associated with the
specified rendererType, to the set of
Renderers registered with this RenderKit. |
abstract Renderer |
getRenderer(java.lang.String rendererType)
Create (if necessary) and return a Renderer instance
with the specified renderer type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public RenderKit()
| Method Detail |
public abstract void addRenderer(java.lang.String rendererType,
Renderer renderer)
Add a new Renderer instance, associated with the
specified rendererType, to the set of
Renderers registered with this RenderKit.
rendererType - Renderer type of the new Rendererrenderer - The new Renderer instance
java.lang.IllegalArgumentException - if a Renderer with the
specified rendererType has already been registered
java.lang.NullPointerException - if rendererType or
renderer is nullpublic abstract Renderer getRenderer(java.lang.String rendererType)
Create (if necessary) and return a Renderer instance
with the specified renderer type. Subsequent calls to this method
with the same rendererType, from the same web application,
must return the same instance.
rendererType - Renderer type to be returned
java.lang.IllegalArgumentException - if the requested renderer type
is not supported by this RenderKit
java.lang.NullPointerException - if rendererType
is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||