public abstract class RenderKitWrapper extends RenderKit implements FacesWrapper<RenderKit>
Provides a simple implementation of RenderKit that can be subclassed by developers wishing to provide specialized behavior to an existing RenderKit instance. The default implementation of all methods is to call through to the wrapped RenderKit.
Usage: extend this class and override getWrapped() to return the wrapped instance.
| Constructor and Description |
|---|
RenderKitWrapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
addClientBehaviorRenderer(String type,
ClientBehaviorRenderer renderer) |
void |
addRenderer(String family,
String rendererType,
Renderer renderer) |
ResponseStream |
createResponseStream(OutputStream out) |
ResponseWriter |
createResponseWriter(Writer writer,
String contentTypeList,
String characterEncoding) |
ClientBehaviorRenderer |
getClientBehaviorRenderer(String type) |
Iterator<String> |
getClientBehaviorRendererTypes() |
Iterator<String> |
getComponentFamilies()
Return an
Iterator over the component-family entries supported by this RenderKit
instance. |
Renderer |
getRenderer(String family,
String rendererType) |
Iterator<String> |
getRendererTypes(String componentFamily)
Return an
Iterator over the renderer-type entries for the given component-family. |
ResponseStateManager |
getResponseStateManager() |
abstract RenderKit |
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.
|
public void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
addClientBehaviorRenderer in class RenderKitpublic void addRenderer(String family, String rendererType, Renderer renderer)
addRenderer in class RenderKitpublic ResponseStream createResponseStream(OutputStream out)
createResponseStream in class RenderKitpublic ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
createResponseWriter in class RenderKitpublic ClientBehaviorRenderer getClientBehaviorRenderer(String type)
getClientBehaviorRenderer in class RenderKitpublic Iterator<String> getClientBehaviorRendererTypes()
getClientBehaviorRendererTypes in class RenderKitpublic Renderer getRenderer(String family, String rendererType)
getRenderer in class RenderKitpublic ResponseStateManager getResponseStateManager()
getResponseStateManager in class RenderKitpublic abstract RenderKit getWrapped()
getWrapped in interface FacesWrapper<RenderKit>public Iterator<String> getComponentFamilies()
Return an Iterator over the component-family entries supported by this RenderKit
instance.
The default implementation of this method returns an empty Iterator
getComponentFamilies in class RenderKitRenderKit.public Iterator<String> getRendererTypes(String componentFamily)
Return an Iterator over the renderer-type entries for the given component-family.
If the specified componentFamily is not known to this RenderKit implementation, return
an empty Iterator
The default implementation of this method returns an empty Iterator
getRendererTypes in class RenderKitcomponentFamily - one of the members of the Iterator returned by RenderKit.getComponentFamilies()Copyright © 2021 The Apache Software Foundation. All Rights Reserved.