- 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 existingRenderKit
instance. The default implementation of all methods is to call through to the wrappedRenderKit
.Usage: extend this class and override
getWrapped()
to return the instance we are wrapping.- Since:
- 2.0
-
-
Constructor Summary
Constructors Constructor and Description RenderKitWrapper()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method and Description void
addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
The default behavior of this method is to callRenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)
on the wrappedRenderKit
object.void
addRenderer(String family, String rendererType, Renderer renderer)
The default behavior of this method is to callRenderKit.addRenderer(String, String, Renderer)
on the wrappedRenderKit
object.ResponseStream
createResponseStream(OutputStream out)
The default behavior of this method is to callRenderKit.createResponseStream(java.io.OutputStream)
on the wrappedRenderKit
object.ResponseWriter
createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
The default behavior of this method is to callRenderKit.createResponseWriter(java.io.Writer, String, String)
on the wrappedRenderKit
object.ClientBehaviorRenderer
getClientBehaviorRenderer(String type)
The default behavior of this method is to callRenderKit.getClientBehaviorRenderer(String)
on the wrappedRenderKit
object.Iterator<String>
getClientBehaviorRendererTypes()
The default behavior of this method is to callRenderKit.getClientBehaviorRendererTypes()
on the wrappedRenderKit
object.Iterator<String>
getComponentFamilies()
The default behavior of this method is to callRenderKit.getComponentFamilies()
on the wrappedRenderKit
object.Renderer
getRenderer(String family, String rendererType)
The default behavior of this method is to callRenderKit.getRenderer(String, String)
on the wrappedRenderKit
object.Iterator<String>
getRendererTypes(String componentFamily)
The default behavior of this method is to callRenderKit.getRendererTypes(String)
on the wrappedRenderKit
object.ResponseStateManager
getResponseStateManager()
The default behavior of this method is to callRenderKit.getResponseStateManager()
on the wrappedRenderKit
object.abstract RenderKit
getWrapped()
A class that implements this interface uses this method to return an instance of the class being wrapped.
-
-
-
Method Detail
-
getWrapped
public abstract RenderKit getWrapped()
Description copied from interface:FacesWrapper
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 wrapped
RenderKit
instance - See Also:
FacesWrapper.getWrapped()
-
addRenderer
public void addRenderer(String family, String rendererType, Renderer renderer)
The default behavior of this method is to call
RenderKit.addRenderer(String, String, Renderer)
on the wrappedRenderKit
object.- Specified by:
addRenderer
in classRenderKit
- Parameters:
family
- Component family of theRenderer
to registerrendererType
- Renderer type of theRenderer
to registerrenderer
-Renderer
instance we are registering- See Also:
RenderKit.addRenderer(String, String, Renderer)
-
createResponseStream
public ResponseStream createResponseStream(OutputStream out)
The default behavior of this method is to call
RenderKit.createResponseStream(java.io.OutputStream)
on the wrappedRenderKit
object.- Specified by:
createResponseStream
in classRenderKit
- See Also:
RenderKit.createResponseStream(java.io.OutputStream)
-
createResponseWriter
public ResponseWriter createResponseWriter(Writer writer, String contentTypeList, String characterEncoding)
The default behavior of this method is to call
RenderKit.createResponseWriter(java.io.Writer, String, String)
on the wrappedRenderKit
object.- Specified by:
createResponseWriter
in classRenderKit
- Parameters:
writer
- the Writer around which thisResponseWriter
must be built.contentTypeList
- an "Accept header style" list of content types for this response, ornull
if the RenderKit should choose the best fit. As of the current version, the values accepted by the Standard render-kit for this parameter include any valid "Accept header style" String that includes the Stringtext/html
,application/xhtml+xml
,application/xml
ortext/xml
. This may change in a future version. The RenderKit must support a value for this argument that comes straight from theAccept
HTTP header, and therefore requires parsing according to the specification of theAccept
header. Please see Section 14.1 of RFC 2616 for the specification of theAccept
header.characterEncoding
- such as "ISO-8859-1" for this ResponseWriter, ornull
if theRenderKit
should choose the best fit. Please see the IANA for a list of character encodings.- Returns:
- a new
ResponseWriter
. - See Also:
RenderKit.createResponseWriter(java.io.Writer, String, String)
-
getRenderer
public Renderer getRenderer(String family, String rendererType)
The default behavior of this method is to call
RenderKit.getRenderer(String, String)
on the wrappedRenderKit
object.- Specified by:
getRenderer
in classRenderKit
- Parameters:
family
- Component family of the requestedRenderer
instancerendererType
- Renderer type of the requestedRenderer
instance- See Also:
RenderKit.getRenderer(String, String)
-
getResponseStateManager
public ResponseStateManager getResponseStateManager()
The default behavior of this method is to call
RenderKit.getResponseStateManager()
on the wrappedRenderKit
object.- Specified by:
getResponseStateManager
in classRenderKit
- See Also:
RenderKit.getResponseStateManager()
-
getComponentFamilies
public Iterator<String> getComponentFamilies()
The default behavior of this method is to call
RenderKit.getComponentFamilies()
on the wrappedRenderKit
object.- Overrides:
getComponentFamilies
in classRenderKit
- See Also:
RenderKit.getComponentFamilies()
-
getRendererTypes
public Iterator<String> getRendererTypes(String componentFamily)
The default behavior of this method is to call
RenderKit.getRendererTypes(String)
on the wrappedRenderKit
object.- Overrides:
getRendererTypes
in classRenderKit
- Parameters:
componentFamily
- one of the members of theIterator
returned byRenderKit.getComponentFamilies()
.- See Also:
RenderKit.getRendererTypes(String)
-
addClientBehaviorRenderer
public void addClientBehaviorRenderer(String type, ClientBehaviorRenderer renderer)
The default behavior of this method is to call
RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)
on the wrappedRenderKit
object.- Overrides:
addClientBehaviorRenderer
in classRenderKit
- Parameters:
type
- type of theClientBehaviorRenderer
to registerrenderer
-ClientBehaviorRenderer
instance we are registering- See Also:
RenderKit.addClientBehaviorRenderer(String, ClientBehaviorRenderer)
-
getClientBehaviorRenderer
public ClientBehaviorRenderer getClientBehaviorRenderer(String type)
The default behavior of this method is to call
RenderKit.getClientBehaviorRenderer(String)
on the wrappedRenderKit
object.- Overrides:
getClientBehaviorRenderer
in classRenderKit
- Parameters:
type
- type of the requestedClientBehaviorRenderer
instance- See Also:
RenderKit.getClientBehaviorRenderer(String)
-
getClientBehaviorRendererTypes
public Iterator<String> getClientBehaviorRendererTypes()
The default behavior of this method is to call
RenderKit.getClientBehaviorRendererTypes()
on the wrappedRenderKit
object.- Overrides:
getClientBehaviorRendererTypes
in classRenderKit
- See Also:
RenderKit.getClientBehaviorRendererTypes()
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 20:50:03 Cette version de la page est en cache (à la date du 21/08/2025 20:50:03) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 11/06/2005, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/faces/render/renderkitwrapper.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.