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

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

public class PropertySheetSectionRenderer
extends javax.faces.render.Renderer


Constructor Summary
PropertySheetSectionRenderer()
          Creates a new instance of PropertySheetSectionRenderer.
 
Method Summary
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render a property sheet.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render a property sheet.
 boolean getRendersChildren()
          This renderer renders the component's children.
protected  void renderProperties(javax.faces.context.FacesContext context, PropertySheetSection propertySheetSection, Theme theme, javax.faces.context.ResponseWriter writer)
          Render a required fields legend.
protected  void renderPropertySheetSection(javax.faces.context.FacesContext context, PropertySheetSection propertySheetSection, Theme theme, javax.faces.context.ResponseWriter writer)
          Render the property sheet sections.
 
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

PropertySheetSectionRenderer

public PropertySheetSectionRenderer()
Creates a new instance of PropertySheetSectionRenderer.

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 sheet.

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

renderPropertySheetSection

protected void renderPropertySheetSection(javax.faces.context.FacesContext context,
                                          PropertySheetSection propertySheetSection,
                                          Theme theme,
                                          javax.faces.context.ResponseWriter writer)
                                   throws java.io.IOException
Render the property sheet sections.

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

renderProperties

protected void renderProperties(javax.faces.context.FacesContext context,
                                PropertySheetSection propertySheetSection,
                                Theme theme,
                                javax.faces.context.ResponseWriter writer)
                         throws java.io.IOException
Render a required fields legend. If propertySheet.getRequiredFields returns null a spacer is rendered.

Parameters:
context - The current FacesContext
propertySheet - The PropertySheet 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
Render a property sheet.

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