org.apache.myfaces.renderkit.html
Class HtmlTableRendererBase

java.lang.Object
  extended byjavax.faces.render.Renderer
      extended byorg.apache.myfaces.renderkit.html.HtmlRenderer
          extended byorg.apache.myfaces.renderkit.html.HtmlTableRendererBase
Direct Known Subclasses:
HtmlNewspaperTableRenderer, HtmlTableRenderer, HtmlTableRenderer, HtmlTreeRenderer

public class HtmlTableRendererBase
extends HtmlRenderer

Version:
$Revision: 1.6 $ $Date: 2004/12/23 13:03:09 $ $Log: HtmlTableRendererBase.java,v $ Revision 1.6 2004/12/23 13:03:09 mmarinschek id's not rendered (or not conditionally rendered); changes in jslistener to support both ie and firefox now Revision 1.5 2004/11/26 12:14:10 oros MYFACES-8: applied tree table patch by David Le Strat
Author:
Thomas Spiegl (latest modification by $Author: mmarinschek $)

Field Summary
protected static java.lang.String FOOTER_FACET_NAME
          Footer facet name.
protected static java.lang.String HEADER_FACET_NAME
          Header facet name.
 
Constructor Summary
HtmlTableRendererBase()
           
 
Method Summary
protected  void afterRow(javax.faces.context.FacesContext facesContext, javax.faces.component.UIData uiData)
          Convenient method for derived table renderers.
protected  void afterTable(javax.faces.context.FacesContext facesContext, javax.faces.component.UIData uiData)
          Convenient method for derived table renderers.
protected  void beforeRow(javax.faces.context.FacesContext facesContext, javax.faces.component.UIData uiData)
          Convenient method for derived table renderers.
protected  void beforeTable(javax.faces.context.FacesContext facesContext, javax.faces.component.UIData uiData)
          Convenient method for derived table renderers.
 void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
 void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component)
           
 void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent)
           
protected static java.lang.String getFooterClass(javax.faces.component.UIComponent component)
           
protected static java.lang.String getHeaderClass(javax.faces.component.UIComponent component)
           
 boolean getRendersChildren()
           
protected  void renderColumnFooterCell(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIColumn uiColumn, java.lang.String footerStyleClass, int colspan)
           
protected  void renderColumnFooterRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String footerStyleClass)
           
protected  void renderColumnHeaderCell(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIColumn uiColumn, java.lang.String headerStyleClass, int colspan)
           
protected  void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String headerStyleClass)
           
protected  void renderFacet(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, boolean header)
           
protected  void renderTableFooterRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, javax.faces.component.UIComponent footerFacet, java.lang.String footerStyleClass, int colspan)
           
protected  void renderTableHeaderRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, javax.faces.component.UIComponent headerFacet, java.lang.String headerStyleClass, int colspan)
           
 
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
 

Field Detail

HEADER_FACET_NAME

protected static final java.lang.String HEADER_FACET_NAME
Header facet name.

See Also:
Constant Field Values

FOOTER_FACET_NAME

protected static final java.lang.String FOOTER_FACET_NAME
Footer facet name.

See Also:
Constant Field Values
Constructor Detail

HtmlTableRendererBase

public HtmlTableRendererBase()
Method Detail

getRendersChildren

public boolean getRendersChildren()

encodeBegin

public void encodeBegin(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIComponent uiComponent)
                 throws java.io.IOException
Throws:
java.io.IOException

encodeChildren

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

beforeTable

protected void beforeTable(javax.faces.context.FacesContext facesContext,
                           javax.faces.component.UIData uiData)
                    throws java.io.IOException
Convenient method for derived table renderers.

Throws:
java.io.IOException

beforeRow

protected void beforeRow(javax.faces.context.FacesContext facesContext,
                         javax.faces.component.UIData uiData)
                  throws java.io.IOException
Convenient method for derived table renderers.

Throws:
java.io.IOException

afterRow

protected void afterRow(javax.faces.context.FacesContext facesContext,
                        javax.faces.component.UIData uiData)
                 throws java.io.IOException
Convenient method for derived table renderers.

Throws:
java.io.IOException

afterTable

protected void afterTable(javax.faces.context.FacesContext facesContext,
                          javax.faces.component.UIData uiData)
                   throws java.io.IOException
Convenient method for derived table renderers.

Throws:
java.io.IOException

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext facesContext,
                      javax.faces.component.UIComponent uiComponent)
               throws java.io.IOException
Throws:
java.io.IOException

renderFacet

protected void renderFacet(javax.faces.context.FacesContext facesContext,
                           javax.faces.context.ResponseWriter writer,
                           javax.faces.component.UIComponent component,
                           boolean header)
                    throws java.io.IOException
Throws:
java.io.IOException

renderTableHeaderRow

protected void renderTableHeaderRow(javax.faces.context.FacesContext facesContext,
                                    javax.faces.context.ResponseWriter writer,
                                    javax.faces.component.UIComponent component,
                                    javax.faces.component.UIComponent headerFacet,
                                    java.lang.String headerStyleClass,
                                    int colspan)
                             throws java.io.IOException
Throws:
java.io.IOException

renderTableFooterRow

protected void renderTableFooterRow(javax.faces.context.FacesContext facesContext,
                                    javax.faces.context.ResponseWriter writer,
                                    javax.faces.component.UIComponent component,
                                    javax.faces.component.UIComponent footerFacet,
                                    java.lang.String footerStyleClass,
                                    int colspan)
                             throws java.io.IOException
Throws:
java.io.IOException

renderColumnHeaderRow

protected void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
                                     javax.faces.context.ResponseWriter writer,
                                     javax.faces.component.UIComponent component,
                                     java.lang.String headerStyleClass)
                              throws java.io.IOException
Throws:
java.io.IOException

renderColumnFooterRow

protected void renderColumnFooterRow(javax.faces.context.FacesContext facesContext,
                                     javax.faces.context.ResponseWriter writer,
                                     javax.faces.component.UIComponent component,
                                     java.lang.String footerStyleClass)
                              throws java.io.IOException
Throws:
java.io.IOException

renderColumnHeaderCell

protected void renderColumnHeaderCell(javax.faces.context.FacesContext facesContext,
                                      javax.faces.context.ResponseWriter writer,
                                      javax.faces.component.UIColumn uiColumn,
                                      java.lang.String headerStyleClass,
                                      int colspan)
                               throws java.io.IOException
Throws:
java.io.IOException

renderColumnFooterCell

protected void renderColumnFooterCell(javax.faces.context.FacesContext facesContext,
                                      javax.faces.context.ResponseWriter writer,
                                      javax.faces.component.UIColumn uiColumn,
                                      java.lang.String footerStyleClass,
                                      int colspan)
                               throws java.io.IOException
Throws:
java.io.IOException

getHeaderClass

protected static java.lang.String getHeaderClass(javax.faces.component.UIComponent component)

getFooterClass

protected static java.lang.String getFooterClass(javax.faces.component.UIComponent component)