Save This Page
Home » tomahawk-1.1.6-src » org.apache.myfaces.renderkit.html » ext » [javadoc | source]
org.apache.myfaces.renderkit.html.ext
public class: HtmlTableRenderer [javadoc | source]
java.lang.Object
   javax.faces.render.Renderer
      org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
         org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
            org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer

Direct Known Subclasses:
    AutoUpdateDataTableRenderer

Renderer for the Tomahawk extended HtmlDataTable component.
Field Summary
public static final  String DETAIL_STAMP_FACET_NAME    DetailStamp facet name. 
Fields inherited from org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase:
HEADER_FACET_NAME,  FOOTER_FACET_NAME
Method from org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer Summary:
afterRow,   amISpannedOver,   beforeBody,   beforeColumn,   beforeColumnHeaderOrFooter,   determineChildColSpan,   determineRenderFacet,   encodeBegin,   encodeChildren,   encodeColumnChild,   encodeEnd,   getNewspaperColumns,   getNewspaperTableSpacer,   hasFacet,   hasNewspaperTableSpacer,   inBodyStart,   isNewspaperHorizontalOrientation,   putSortedReqScopeParam,   renderColumnBody,   renderColumnChildHeaderOrFooterRow,   renderColumnFooterCell,   renderColumnFooterRow,   renderColumnHeaderCell,   renderColumnHeaderRow,   renderHtmlColumnAttributes,   renderRowAttribute,   renderRowStart,   renderRowStyle
Methods from org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase:
afterBody,   afterColumn,   afterColumnHeaderOrFooter,   afterRow,   afterTable,   beforeBody,   beforeColumn,   beforeColumnHeaderOrFooter,   beforeRow,   beforeTable,   decode,   determineChildColSpan,   encodeBegin,   encodeChildren,   encodeColumnChild,   encodeEnd,   encodeInnerHtml,   getFooterClass,   getHeaderClass,   getNewspaperColumns,   getNewspaperTableSpacer,   getRendersChildren,   getStyles,   hasFacet,   hasNewspaperTableSpacer,   inBodyStart,   isNewspaperHorizontalOrientation,   renderColumnBody,   renderColumnChildHeaderOrFooterRow,   renderColumnFooterCell,   renderColumnFooterCell,   renderColumnFooterRow,   renderColumnHeaderCell,   renderColumnHeaderCell,   renderColumnHeaderRow,   renderFacet,   renderRowEnd,   renderRowStart,   renderRowStyle,   renderSpacerCell,   renderTableFooterRow,   renderTableHeaderRow
Methods from org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer:
getActionUrl,   getChildCount,   getChildren,   getClientId,   renderId,   shouldRenderId,   toUri
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer Detail:
 protected  void afterRow(FacesContext facesContext,
    UIData uiData) throws IOException 
 protected boolean amISpannedOver(String prefix,
    UIComponent component) 
    specify if the header, footer or
is spanned over (not shown) because of a colspan in a cell in a previous column
 protected  void beforeBody(FacesContext facesContext,
    UIData uiData) throws IOException 
 protected  void beforeColumn(FacesContext facesContext,
    UIData uiData,
    int columnIndex) throws IOException 
 protected  void beforeColumnHeaderOrFooter(FacesContext facesContext,
    UIData uiData,
    boolean header,
    int columnIndex) throws IOException 
 protected int determineChildColSpan(UIComponent uiComponent) 
    Return the number of columns spanned by the specified component.

    For normal components, use the inherited implementation. For UIColumns children, return the number of dynamic columns rendered by that child.

 protected boolean determineRenderFacet(UIComponent component,
    boolean header) 
    determine if the header or footer should be rendered.
 public  void encodeBegin(FacesContext facesContext,
    UIComponent uiComponent) throws IOException 
 public  void encodeChildren(FacesContext facesContext,
    UIComponent component) throws IOException 
 protected  void encodeColumnChild(FacesContext facesContext,
    ResponseWriter writer,
    UIData uiData,
    UIComponent component,
    Styles styles,
    int columnStyleIndex) throws IOException 
    Render the specified column object using the current row data.

    When the component is a UIColumn object, the inherited method is invoked to render a single table cell.

    In addition to the inherited functionality, support is implemented here for UIColumns children. When a UIColumns child is encountered:

    For each dynamic column in that UIColumns child:
    * Select the column (which sets variable named by the var attribute
    to refer to the current column object)
    * Call this.renderColumnBody passing the UIColumns object.
    
    The renderColumnBody method eventually:
    • emits TD
    • calls encodeBegin on the UIColumns (which does nothing)
    • calls rendering methods on all children of the UIColumns
    • calls encodeEnd on the UIColumns (which does nothing)
    • emits /TD
    If the children of the UIColumns access the variable named by the var attribute on the UIColumns object, then they end up rendering content that is extracted from the current column object.
 public  void encodeEnd(FacesContext facesContext,
    UIComponent uiComponent) throws IOException 
 protected int getNewspaperColumns(UIComponent component) 
 protected UIComponent getNewspaperTableSpacer(UIComponent component) 
 protected boolean hasFacet(boolean header,
    UIComponent uiComponent) 
    Return true if the specified component has a facet that needs to be rendered in a THEAD or TFOOT section.
 protected boolean hasNewspaperTableSpacer(UIComponent component) 
 protected  void inBodyStart(FacesContext facesContext,
    UIData uiData) throws IOException 
    Perform any operations necessary in the TBODY start tag.
 protected boolean isNewspaperHorizontalOrientation(UIComponent component) 
 protected  void putSortedReqScopeParam(FacesContext facesContext,
    HtmlDataTable dataTable,
    int columnIndex) 
 protected  void renderColumnBody(FacesContext facesContext,
    ResponseWriter writer,
    UIData uiData,
    UIComponent component,
    Styles styles,
    int columnStyleIndex) throws IOException 
 protected  void renderColumnChildHeaderOrFooterRow(FacesContext facesContext,
    ResponseWriter writer,
    UIComponent uiComponent,
    String styleClass,
    boolean header) throws IOException 
    Render the header or footer of the specified column object.

    When the component is a UIColumn object, the inherited method is invoked to render a single header cell.

    In addition to the inherited functionality, support is implemented here for UIColumns children. When a UIColumns child is encountered:

    For each dynamic column in that UIColumns child:
    * Select the column (which sets variable named by the var attribute
    to refer to the current column object)
    * Call this.renderColumnHeaderCell or this.renderColumnFooterCell
    passing the header or footer facet of the UIColumns object.
    
    If the facet of the UIColumns accesses the variable named by the var attribute on the UIColumns object, then it ends up rendering content that is extracted from the current column object.
 protected  void renderColumnFooterCell(FacesContext facesContext,
    ResponseWriter writer,
    UIComponent uiComponent,
    UIComponent facet,
    String footerStyleClass,
    int colspan) throws IOException 
 protected  void renderColumnFooterRow(FacesContext facesContext,
    ResponseWriter writer,
    UIComponent component,
    String footerStyleClass) throws IOException 
    Renders the column footer. Rendering will be supressed if all of the facets have rendered="false"
 protected  void renderColumnHeaderCell(FacesContext facesContext,
    ResponseWriter writer,
    UIComponent uiComponent,
    UIComponent facet,
    String headerStyleClass,
    int colspan) throws IOException 
 protected  void renderColumnHeaderRow(FacesContext facesContext,
    ResponseWriter writer,
    UIComponent component,
    String headerStyleClass) throws IOException 
    Renders the column header. Rendering will be supressed if all of the facets have rendered="false"
 protected  void renderHtmlColumnAttributes(ResponseWriter writer,
    UIComponent uiComponent,
    String prefix) throws IOException 
 protected  void renderRowAttribute(ResponseWriter writer,
    String htmlAttribute,
    Object value) throws IOException 
 protected  void renderRowStart(FacesContext facesContext,
    ResponseWriter writer,
    UIData uiData,
    Styles styles,
    int rowStyleIndex) throws IOException 
 protected  void renderRowStyle(FacesContext facesContext,
    ResponseWriter writer,
    UIData uiData,
    Styles styles,
    int rowStyleIndex) throws IOException