com.ibm.xsp.renderkit
Class ReadOnlyAdapterRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.ibm.xsp.renderkit.ReadOnlyAdapterRenderer
All Implemented Interfaces:
javax.faces.FacesWrapper<javax.faces.render.Renderer>

public class ReadOnlyAdapterRenderer
extends javax.faces.render.Renderer
implements javax.faces.FacesWrapper<javax.faces.render.Renderer>

Read Only Renderer, a wrapper around normal renderers to handle read-only and partial update behaviors. This wrapper may or may not delegate to the renderer with renderer-type ending in ".ReadOnly", depending on whether the current XPage or Panel is read-only or not, otherwise delegating to the default control renderer. This wrapper also handles some types of the Partial Update, where it directs the HTML output to a null output stream or to the web browser, depending on whether this control is within the Partial Updated area or not.


Constructor Summary
ReadOnlyAdapterRenderer(javax.faces.render.RenderKit renderKit, java.lang.String family, java.lang.String rendererType, javax.faces.render.Renderer renderer)
           
 
Method Summary
 java.lang.String convertClientId(javax.faces.context.FacesContext context, java.lang.String component)
           
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 java.lang.Object getConvertedValue(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           
protected  javax.faces.render.Renderer getCurrentRenderer(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, boolean readOnly)
          Get the correct renderer to use for this request
 javax.faces.render.Renderer getRenderer()
          Return the underlying renderer
 boolean getRendersChildren()
           
 javax.faces.render.Renderer getWrapped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyAdapterRenderer

public ReadOnlyAdapterRenderer(javax.faces.render.RenderKit renderKit,
                               java.lang.String family,
                               java.lang.String rendererType,
                               javax.faces.render.Renderer renderer)
Method Detail

getWrapped

public javax.faces.render.Renderer getWrapped()
Specified by:
getWrapped in interface javax.faces.FacesWrapper<javax.faces.render.Renderer>

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Overrides:
encodeBegin in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
java.io.IOException

convertClientId

public java.lang.String convertClientId(javax.faces.context.FacesContext context,
                                        java.lang.String component)
Overrides:
convertClientId in class javax.faces.render.Renderer

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

getConvertedValue

public java.lang.Object getConvertedValue(javax.faces.context.FacesContext context,
                                          javax.faces.component.UIComponent component,
                                          java.lang.Object value)
                                   throws javax.faces.convert.ConverterException
Overrides:
getConvertedValue in class javax.faces.render.Renderer
Throws:
javax.faces.convert.ConverterException

getCurrentRenderer

protected javax.faces.render.Renderer getCurrentRenderer(javax.faces.context.FacesContext context,
                                                         javax.faces.component.UIComponent component,
                                                         boolean readOnly)
Get the correct renderer to use for this request


getRenderer

public javax.faces.render.Renderer getRenderer()
Return the underlying renderer