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

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

public class TableHeaderRenderer
extends javax.faces.render.Renderer

This class renders TableHeader components.

Note: To see the messages logged by this class, set the following global defaults in your JDK's "jre/lib/logging.properties" file.

 java.util.logging.ConsoleHandler.level = FINE
 com.sun.rave.web.ui.renderer.TableHeaderRenderer.level = FINE
 


Constructor Summary
TableHeaderRenderer()
           
 
Method Summary
 void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the beginning of the specified UIComponent to the output stream or writer associated with the response we are creating.
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the children of the specified UIComponent to the output stream or writer associated with the response we are creating.
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Render the ending of the specified UIComponent to the output stream or writer associated with the response we are creating.
 boolean getRendersChildren()
          Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render.
protected  void renderColumnHeader(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render column headers for TableHeader components.
protected  void renderEnclosingTagEnd(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render enclosing tag for TableHeader components.
protected  void renderEnclosingTagStart(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render enclosing tag for TableHeader components.
protected  void renderGroupHeader(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render group header for TableHeader components.
protected  void renderSelectHeader(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render select column headers for TableHeader components.
protected  void renderSortHeader(javax.faces.context.FacesContext context, TableHeader component, javax.faces.context.ResponseWriter writer)
          Render sort column headers for TableHeader components.
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, decode, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableHeaderRenderer

public TableHeaderRenderer()
Method Detail

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component)
                 throws java.io.IOException
Render the beginning of the specified UIComponent to the output stream or writer associated with the response we are creating.

Overrides:
encodeBegin in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the current request.
component - UIComponent to be rendered.
Throws:
java.io.IOException - if an input/output error occurs.
java.lang.NullPointerException - if context or component is null.

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws java.io.IOException
Render the children of the specified UIComponent to the output stream or writer associated with the response we are creating.

Overrides:
encodeChildren in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the current request.
component - UIComponent to be decoded.
Throws:
java.io.IOException - if an input/output error occurs.
java.lang.NullPointerException - if context or component is null.

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws java.io.IOException
Render the ending of the specified UIComponent to the output stream or writer associated with the response we are creating.

Overrides:
encodeEnd in class javax.faces.render.Renderer
Parameters:
context - FacesContext for the current request.
component - UIComponent to be rendered.
Throws:
java.io.IOException - if an input/output error occurs.
java.lang.NullPointerException - if context or component is null.

getRendersChildren

public boolean getRendersChildren()
Return a flag indicating whether this Renderer is responsible for rendering the children the component it is asked to render. The default implementation returns false.

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

renderColumnHeader

protected void renderColumnHeader(javax.faces.context.FacesContext context,
                                  TableHeader component,
                                  javax.faces.context.ResponseWriter writer)
                           throws java.io.IOException
Render column headers for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.

renderSelectHeader

protected void renderSelectHeader(javax.faces.context.FacesContext context,
                                  TableHeader component,
                                  javax.faces.context.ResponseWriter writer)
                           throws java.io.IOException
Render select column headers for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.

renderSortHeader

protected void renderSortHeader(javax.faces.context.FacesContext context,
                                TableHeader component,
                                javax.faces.context.ResponseWriter writer)
                         throws java.io.IOException
Render sort column headers for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.

renderGroupHeader

protected void renderGroupHeader(javax.faces.context.FacesContext context,
                                 TableHeader component,
                                 javax.faces.context.ResponseWriter writer)
                          throws java.io.IOException
Render group header for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.

renderEnclosingTagStart

protected void renderEnclosingTagStart(javax.faces.context.FacesContext context,
                                       TableHeader component,
                                       javax.faces.context.ResponseWriter writer)
                                throws java.io.IOException
Render enclosing tag for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.

renderEnclosingTagEnd

protected void renderEnclosingTagEnd(javax.faces.context.FacesContext context,
                                     TableHeader component,
                                     javax.faces.context.ResponseWriter writer)
                              throws java.io.IOException
Render enclosing tag for TableHeader components.

Parameters:
context - FacesContext for the current request.
component - TableHeader to be rendered.
writer - ResponseWriter to which the component should be rendered.
Throws:
java.io.IOException - if an input/output error occurs.