com.sun.rave.web.ui.renderer
Class PropertyRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by com.sun.rave.web.ui.renderer.PropertyRenderer

public class PropertyRenderer
extends javax.faces.render.Renderer


Constructor Summary
PropertyRenderer()
          Creates a new instance of PropertyRenderer.
 
Method Summary
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Does nothing.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render a property component.
 boolean getRendersChildren()
          This renderer renders the component's children.
protected  void renderHelpText(javax.faces.context.FacesContext context, Property property, Theme theme, javax.faces.context.ResponseWriter writer)
          Render help text for the property
protected  void renderLabel(javax.faces.context.FacesContext context, Property property, Theme theme, javax.faces.context.ResponseWriter writer)
          Render a label for the propertySheetSection
protected  void renderPropertyComponents(javax.faces.context.FacesContext context, Property property, Theme theme, javax.faces.context.ResponseWriter writer)
          Render the property components.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, encodeBegin, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyRenderer

public PropertyRenderer()
Creates a new instance of PropertyRenderer.

Method Detail

getRendersChildren

public boolean getRendersChildren()
This renderer renders the component's children.

Overrides:
getRendersChildren in class javax.faces.render.Renderer

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Render a property component.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Parameters:
context - The current FacesContext
component - The Property object to render
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderPropertyComponents

protected void renderPropertyComponents(javax.faces.context.FacesContext context,
                                        Property property,
                                        Theme theme,
                                        javax.faces.context.ResponseWriter writer)
                                 throws java.io.IOException
Render the property components. If the content facet it defined it takes precendence over the existence of child components. If there is not content facet, then the children are rendered.

Parameters:
context - The current FacesContext
property - The Property object to render
theme - The Theme to reference.
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderLabel

protected void renderLabel(javax.faces.context.FacesContext context,
                           Property property,
                           Theme theme,
                           javax.faces.context.ResponseWriter writer)
                    throws java.io.IOException
Render a label for the propertySheetSection

Parameters:
context - The current FacesContext
property - The Property object to render
theme - The Theme to reference.
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

renderHelpText

protected void renderHelpText(javax.faces.context.FacesContext context,
                              Property property,
                              Theme theme,
                              javax.faces.context.ResponseWriter writer)
                       throws java.io.IOException
Render help text for the property

Parameters:
context - The current FacesContext
property - The Property object to render
theme - The Theme to reference.
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Does nothing.

Overrides:
encodeChildren in class javax.faces.render.Renderer
Parameters:
context - The current FacesContext
component - The Property object to render
writer - The current ResponseWriter
Throws:
java.io.IOException - if an input/output error occurs