Class RenderKitWrapper
- java.lang.Object
-
- javax.faces.render.RenderKit
-
- javax.faces.render.RenderKitWrapper
-
- All Implemented Interfaces:
FacesWrapper<RenderKit>
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.
- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor Description RenderKitWrapper()
Deprecated.RenderKitWrapper(RenderKit delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 anIterator
over the component-family entries supported by thisRenderKit
instance.Renderer
getRenderer(String family, String rendererType)
Iterator<String>
getRendererTypes(String componentFamily)
Return anIterator
over the renderer-type entries for the given component-family.ResponseStateManager
getResponseStateManager()
RenderKit
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.
-
-
-
Constructor Detail
-
RenderKitWrapper
@Deprecated public RenderKitWrapper()
Deprecated.
-
RenderKitWrapper
public RenderKitWrapper(RenderKit delegate)
-
-
Method Detail
-
addClientBehaviorRenderer
public void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
- Overrides:
addClientBehaviorRenderer
in classRenderKit
-
addRenderer
public void addRenderer(String family, String rendererType, Renderer renderer)
- Specified by:
addRenderer
in classRenderKit
-
createResponseStream
public ResponseStream createResponseStream(OutputStream out)
- Specified by:
createResponseStream
in classRenderKit
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
- Specified by:
createResponseWriter
in classRenderKit
-
getClientBehaviorRenderer
public ClientBehaviorRenderer getClientBehaviorRenderer(String type)
- Overrides:
getClientBehaviorRenderer
in classRenderKit
-
getClientBehaviorRendererTypes
public Iterator<String> getClientBehaviorRendererTypes()
- Overrides:
getClientBehaviorRendererTypes
in classRenderKit
-
getRenderer
public Renderer getRenderer(String family, String rendererType)
- Specified by:
getRenderer
in classRenderKit
-
getResponseStateManager
public ResponseStateManager getResponseStateManager()
- Specified by:
getResponseStateManager
in classRenderKit
-
getWrapped
public RenderKit getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrapped
in interfaceFacesWrapper<RenderKit>
- Returns:
- the instance of the class being wrapped
-
getComponentFamilies
public Iterator<String> getComponentFamilies()
Return an
Iterator
over the component-family entries supported by thisRenderKit
instance.The default implementation of this method returns an empty
Iterator
- Overrides:
getComponentFamilies
in classRenderKit
- Returns:
- an iterator over the component families supported by this
RenderKit
.
-
getRendererTypes
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 thisRenderKit
implementation, return an emptyIterator
The default implementation of this method returns an empty
Iterator
- Overrides:
getRendererTypes
in classRenderKit
- Parameters:
componentFamily
- one of the members of theIterator
returned byRenderKit.getComponentFamilies()
- Returns:
- an iterator over the renderer-type entries for the given component-family.
-
-