Provides a simple implementation of
Renderer that can be subclassed by developers wishing to
provide specialized behavior to an existing Renderer
instance. The default implementation of all methods is to call
through to the wrapped Renderer instance.
Usage: extend this class and push the implementation being wrapped to the
constructor and use getWrapped to access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private Renderer |
| Access | Constructor and Description |
|---|---|
| public | |
| public | RendererWrapper(Renderer
The implementation being wrapped. wrapped)If this renderer has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public String | convertClientId(FacesContext
FacesContext for the current requestthe client identifier to be converted to client a
specific format. clientId)Overrides javax. Convert the component generated client id to a form suitable for transmission to the client. |
| public void | decode(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.Overrides javax. Decode any new state of the specified |
| public void | encodeBegin(FacesContext
FacesContext for the request we are processingUIComponent to be renderedOverrides javax. Render the beginning specified |
| public void | encodeChildren(FacesContext
FacesContext for the response we are creatingUIComponent whose children are to be renderedOverrides javax. Render the child components of this |
| public void | encodeEnd(FacesContext
FacesContext for the response we are creatingUIComponent to be renderedOverrides javax. Render the ending of the current state of the specified
|
| public Object | getConvertedValue(FacesContext
FacesContext for the request we are processingUIComponent to be decoded.a value stored on the component during
submittedValue)decode.Overrides javax. Attempt to convert previously stored state information into an
object of the type required for this component (optionally using the
registered |
| public boolean | getRendersChildren()
Overrides javax. Return a flag indicating whether this |
| public Renderer | getWrapped()
Implements javax. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| wrapped | back to summary |
|---|---|
| private Renderer wrapped | |
| RendererWrapper | back to summary |
|---|---|
| public RendererWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| RendererWrapper | back to summary |
|---|---|
| public RendererWrapper(Renderer wrapped) If this renderer has been decorated,
the implementation doing the decorating should push the implementation being wrapped to this constructor.
The
| |
| convertClientId | back to summary |
|---|---|
| public String convertClientId(FacesContext context, String clientId) Overrides javax. Doc from javax. Convert the component generated client id to a form suitable for transmission to the client. The default implementation returns the argument
| |
| decode | back to summary |
|---|---|
| public void decode(FacesContext context, UIComponent component) Overrides javax. Doc from javax. Decode any new state of the specified During decoding, events may be enqueued for later processing
(by event listeners that have registered an interest), by calling
| |
| encodeBegin | back to summary |
|---|---|
| public void encodeBegin(FacesContext context, UIComponent component) throws IOException Overrides javax. Doc from javax. Render the beginning specified
| |
| encodeChildren | back to summary |
|---|---|
| public void encodeChildren(FacesContext context, UIComponent component) throws IOException Overrides javax. Doc from javax. Render the child components of this
| |
| encodeEnd | back to summary |
|---|---|
| public void encodeEnd(FacesContext context, UIComponent component) throws IOException Overrides javax. Doc from javax. Render the ending of the current state of the specified
| |
| getConvertedValue | back to summary |
|---|---|
| public Object getConvertedValue(FacesContext context, UIComponent component, Object submittedValue) throws ConverterException Overrides javax. Doc from javax. Attempt to convert previously stored state information into an
object of the type required for this component (optionally using the
registered
| |
| getRendersChildren | back to summary |
|---|---|
| public boolean getRendersChildren() Overrides javax. Doc from javax. Return a flag indicating whether this
| |
| getWrapped | back to summary |
|---|---|
| public Renderer getWrapped() Implements javax. Doc from javax. A class that implements this interface uses this method to return an instance of the class being wrapped. | |