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

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

public class PropertySheetRenderer
extends javax.faces.render.Renderer

Renders a PropertySheet component.


Field Summary
static java.lang.String JUMPTOSECTIONTOOLTIP
           
static java.lang.String JUMPTOTOP
           
static java.lang.String JUMPTOTOPTOOLTIP
           
 
Constructor Summary
PropertySheetRenderer()
          Creates a new instance of PropertySheetRenderer.
 
Method Summary
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Does not participate in rendering a PropertySheet.
 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 renderJumpLinks(javax.faces.context.FacesContext context, PropertySheet propertySheet, Theme theme, javax.faces.context.ResponseWriter writer)
          Render a set of jump links.
protected  void renderPropertySheetSections(javax.faces.context.FacesContext context, PropertySheet propertySheet, Theme theme, javax.faces.context.ResponseWriter writer)
          Render the property sheet sections.
protected  void renderRequiredFieldsLegend(javax.faces.context.FacesContext context, PropertySheet propertySheet, Theme theme, javax.faces.context.ResponseWriter writer)
          Render a required fields legend.
 
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
 

Field Detail

JUMPTOSECTIONTOOLTIP

public static final java.lang.String JUMPTOSECTIONTOOLTIP
See Also:
Constant Field Values

JUMPTOTOPTOOLTIP

public static final java.lang.String JUMPTOTOPTOOLTIP
See Also:
Constant Field Values

JUMPTOTOP

public static final java.lang.String JUMPTOTOP
See Also:
Constant Field Values
Constructor Detail

PropertySheetRenderer

public PropertySheetRenderer()
Creates a new instance of PropertySheetRenderer.

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

renderPropertySheetSections

protected void renderPropertySheetSections(javax.faces.context.FacesContext context,
                                           PropertySheet propertySheet,
                                           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

renderRequiredFieldsLegend

protected void renderRequiredFieldsLegend(javax.faces.context.FacesContext context,
                                          PropertySheet propertySheet,
                                          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

renderJumpLinks

protected void renderJumpLinks(javax.faces.context.FacesContext context,
                               PropertySheet propertySheet,
                               Theme theme,
                               javax.faces.context.ResponseWriter writer)
                        throws java.io.IOException
Render a set of jump links.

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
Does not participate in rendering a PropertySheet.

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