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 TypeMethodDescriptionvoidaddClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer) voidaddRenderer(String family, String rendererType, Renderer renderer) createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) Return anIteratorover the component-family entries supported by thisRenderKitinstance.getRenderer(String family, String rendererType) getRendererTypes(String componentFamily) Return anIteratorover 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:
addClientBehaviorRendererin classRenderKit
-
addRenderer
- Specified by:
addRendererin classRenderKit
-
createResponseStream
- Specified by:
createResponseStreamin classRenderKit
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding) - Specified by:
createResponseWriterin classRenderKit
-
getClientBehaviorRenderer
- Overrides:
getClientBehaviorRendererin classRenderKit
-
getClientBehaviorRendererTypes
- Overrides:
getClientBehaviorRendererTypesin classRenderKit
-
getRenderer
- Specified by:
getRendererin classRenderKit
-
getResponseStateManager
- Specified by:
getResponseStateManagerin classRenderKit
-
getWrapped
A class that implements this interface uses this method to return an instance of the class being wrapped.- Specified by:
getWrappedin interfaceFacesWrapper<RenderKit>- Returns:
- the instance of the class being wrapped
-
getComponentFamilies
Return an
Iteratorover the component-family entries supported by thisRenderKitinstance.The default implementation of this method returns an empty
Iterator- Overrides:
getComponentFamiliesin classRenderKit- Returns:
- an iterator over the component families supported by this
RenderKit.
-
getRendererTypes
Return an
Iteratorover the renderer-type entries for the given component-family.If the specified
componentFamilyis not known to thisRenderKitimplementation, return an emptyIteratorThe default implementation of this method returns an empty
Iterator- Overrides:
getRendererTypesin classRenderKit- Parameters:
componentFamily- one of the members of theIteratorreturned byRenderKit.getComponentFamilies()- Returns:
- an iterator over the renderer-type entries for the given component-family.
-