Class RenderKitWrapper
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
addClientBehaviorRenderer
(String type, ClientBehaviorRenderer renderer) void
addRenderer
(String family, String rendererType, Renderer renderer) createResponseWriter
(Writer writer, String contentTypeList, String characterEncoding) Return anIterator
over the component-family entries supported by thisRenderKit
instance.getRenderer
(String family, String rendererType) getRendererTypes
(String componentFamily) Return anIterator
over the renderer-type entries for the given component-family.A class that implements this interface uses this method to return an instance of the class being wrapped.
-
Constructor Details
-
RenderKitWrapper
Deprecated. -
RenderKitWrapper
-
-
Method Details
-
addClientBehaviorRenderer
- Overrides:
addClientBehaviorRenderer
in classRenderKit
-
addRenderer
- Specified by:
addRenderer
in classRenderKit
-
createResponseStream
- Specified by:
createResponseStream
in classRenderKit
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) - Specified by:
createResponseWriter
in classRenderKit
-
getClientBehaviorRenderer
- Overrides:
getClientBehaviorRenderer
in classRenderKit
-
getClientBehaviorRendererTypes
- Overrides:
getClientBehaviorRendererTypes
in classRenderKit
-
getRenderer
- Specified by:
getRenderer
in classRenderKit
-
getResponseStateManager
- Specified by:
getResponseStateManager
in classRenderKit
-
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
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
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.
-