org.primefaces.component.datatable
Class DataTableRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.primefaces.renderkit.CoreRenderer
          extended by org.primefaces.renderkit.DataRenderer
              extended by org.primefaces.component.datatable.DataTableRenderer

public class DataTableRenderer
extends DataRenderer


Field Summary
 
Fields inherited from class org.primefaces.renderkit.DataRenderer
paginatorElements
 
Constructor Summary
DataTableRenderer()
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String clientId, boolean selected)
           
protected  void encodeCheckbox(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled, String styleClass)
           
 void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
 void encodeColGroup(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeColumnFooter(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
           
protected  void encodeColumnHeader(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
           
protected  void encodeColumnHeaderContent(javax.faces.context.FacesContext context, UIColumn column, String sortIcon)
           
protected  void encodeColumnSelection(javax.faces.context.FacesContext context, DataTable table, String clientId, UIColumn column, boolean selected)
           
 void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeFacet(javax.faces.context.FacesContext context, DataTable table, javax.faces.component.UIComponent facet, String styleClass)
           
protected  void encodeFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
           
protected  void encodeFrozenRows(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeLiveRows(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeMarkup(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled)
           
protected  void encodeRegularTable(javax.faces.context.FacesContext context, DataTable table)
           
 boolean encodeRow(javax.faces.context.FacesContext context, DataTable table, String clientId, int rowIndex, String rowIndexVar)
           
protected  void encodeRowExpansion(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeScript(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeScrollableTable(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeScrollAreaEnd(javax.faces.context.FacesContext context)
           
protected  void encodeScrollAreaStart(javax.faces.context.FacesContext context, DataTable table, String containerClass, String containerBoxClass, String tableStyle, String tableStyleClass)
           
protected  void encodeScrollBody(javax.faces.context.FacesContext context, DataTable table, String tableStyle, String tableStyleClass)
           
protected  void encodeStateHolder(javax.faces.context.FacesContext context, DataTable table, String id, String value)
           
protected  void encodeSubTable(javax.faces.context.FacesContext context, DataTable table, SubTable subTable, int rowIndex, String rowIndexVar)
           
protected  void encodeSummaryRow(javax.faces.context.FacesContext context, DataTable table, SummaryRow summaryRow)
           
 void encodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly)
           
protected  void encodeTFoot(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeThead(javax.faces.context.FacesContext context, DataTable table)
          Render column headers either in single row or nested if a columnGroup is defined
protected  javax.faces.model.SelectItem[] getFilterOptions(UIColumn column)
           
 boolean getRendersChildren()
           
protected  String resolveDefaultSortIcon(javax.el.ValueExpression columnSortBy, javax.el.ValueExpression tableSortBy, String sortOrder)
           
 
Methods inherited from class org.primefaces.renderkit.DataRenderer
encodeFacet, encodePaginatorConfig, encodePaginatorMarkup
 
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, encodeClientBehaviors, endScript, escapeText, getActionURL, getEscapedClientId, getOnclickBehaviors, getResourceRequestPath, getResourceURL, getWidgetBuilder, isAjaxRequest, isPostBack, isPostback, isValueBlank, isValueEmpty, renderChild, renderChildren, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, shouldRenderAttribute, shouldWriteId, startScript
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, getConvertedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataTableRenderer

public DataTableRenderer()
Method Detail

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeEnd

public void encodeEnd(javax.faces.context.FacesContext context,
                      javax.faces.component.UIComponent component)
               throws IOException
Overrides:
encodeEnd in class javax.faces.render.Renderer
Throws:
IOException

encodeScript

protected void encodeScript(javax.faces.context.FacesContext context,
                            DataTable table)
                     throws IOException
Throws:
IOException

encodeMarkup

protected void encodeMarkup(javax.faces.context.FacesContext context,
                            DataTable table)
                     throws IOException
Throws:
IOException

encodeRegularTable

protected void encodeRegularTable(javax.faces.context.FacesContext context,
                                  DataTable table)
                           throws IOException
Throws:
IOException

encodeScrollableTable

protected void encodeScrollableTable(javax.faces.context.FacesContext context,
                                     DataTable table)
                              throws IOException
Throws:
IOException

encodeScrollAreaStart

protected void encodeScrollAreaStart(javax.faces.context.FacesContext context,
                                     DataTable table,
                                     String containerClass,
                                     String containerBoxClass,
                                     String tableStyle,
                                     String tableStyleClass)
                              throws IOException
Throws:
IOException

encodeScrollAreaEnd

protected void encodeScrollAreaEnd(javax.faces.context.FacesContext context)
                            throws IOException
Throws:
IOException

encodeScrollBody

protected void encodeScrollBody(javax.faces.context.FacesContext context,
                                DataTable table,
                                String tableStyle,
                                String tableStyleClass)
                         throws IOException
Throws:
IOException

encodeColumnHeader

protected void encodeColumnHeader(javax.faces.context.FacesContext context,
                                  DataTable table,
                                  UIColumn column)
                           throws IOException
Throws:
IOException

resolveDefaultSortIcon

protected String resolveDefaultSortIcon(javax.el.ValueExpression columnSortBy,
                                        javax.el.ValueExpression tableSortBy,
                                        String sortOrder)

encodeColumnHeaderContent

protected void encodeColumnHeaderContent(javax.faces.context.FacesContext context,
                                         UIColumn column,
                                         String sortIcon)
                                  throws IOException
Throws:
IOException

encodeFilter

protected void encodeFilter(javax.faces.context.FacesContext context,
                            DataTable table,
                            UIColumn column)
                     throws IOException
Throws:
IOException

getFilterOptions

protected javax.faces.model.SelectItem[] getFilterOptions(UIColumn column)

encodeColumnFooter

protected void encodeColumnFooter(javax.faces.context.FacesContext context,
                                  DataTable table,
                                  UIColumn column)
                           throws IOException
Throws:
IOException

encodeThead

protected void encodeThead(javax.faces.context.FacesContext context,
                           DataTable table)
                    throws IOException
Render column headers either in single row or nested if a columnGroup is defined

Throws:
IOException

encodeColGroup

public void encodeColGroup(javax.faces.context.FacesContext context,
                           DataTable table)
                    throws IOException
Throws:
IOException

encodeTbody

public void encodeTbody(javax.faces.context.FacesContext context,
                        DataTable table,
                        boolean dataOnly)
                 throws IOException
Throws:
IOException

encodeFrozenRows

protected void encodeFrozenRows(javax.faces.context.FacesContext context,
                                DataTable table)
                         throws IOException
Throws:
IOException

encodeSummaryRow

protected void encodeSummaryRow(javax.faces.context.FacesContext context,
                                DataTable table,
                                SummaryRow summaryRow)
                         throws IOException
Throws:
IOException

encodeRow

public boolean encodeRow(javax.faces.context.FacesContext context,
                         DataTable table,
                         String clientId,
                         int rowIndex,
                         String rowIndexVar)
                  throws IOException
Throws:
IOException

encodeCell

protected void encodeCell(javax.faces.context.FacesContext context,
                          DataTable table,
                          UIColumn column,
                          String clientId,
                          boolean selected)
                   throws IOException
Throws:
IOException

encodeTFoot

protected void encodeTFoot(javax.faces.context.FacesContext context,
                           DataTable table)
                    throws IOException
Throws:
IOException

encodeFacet

protected void encodeFacet(javax.faces.context.FacesContext context,
                           DataTable table,
                           javax.faces.component.UIComponent facet,
                           String styleClass)
                    throws IOException
Throws:
IOException

encodeStateHolder

protected void encodeStateHolder(javax.faces.context.FacesContext context,
                                 DataTable table,
                                 String id,
                                 String value)
                          throws IOException
Throws:
IOException

encodeChildren

public void encodeChildren(javax.faces.context.FacesContext context,
                           javax.faces.component.UIComponent component)
                    throws IOException
Overrides:
encodeChildren in class javax.faces.render.Renderer
Throws:
IOException

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

encodeRowExpansion

protected void encodeRowExpansion(javax.faces.context.FacesContext context,
                                  DataTable table)
                           throws IOException
Throws:
IOException

encodeColumnSelection

protected void encodeColumnSelection(javax.faces.context.FacesContext context,
                                     DataTable table,
                                     String clientId,
                                     UIColumn column,
                                     boolean selected)
                              throws IOException
Throws:
IOException

encodeRadio

protected void encodeRadio(javax.faces.context.FacesContext context,
                           DataTable table,
                           boolean checked,
                           boolean disabled)
                    throws IOException
Throws:
IOException

encodeCheckbox

protected void encodeCheckbox(javax.faces.context.FacesContext context,
                              DataTable table,
                              boolean checked,
                              boolean disabled,
                              String styleClass)
                       throws IOException
Throws:
IOException

encodeLiveRows

protected void encodeLiveRows(javax.faces.context.FacesContext context,
                              DataTable table)
                       throws IOException
Throws:
IOException

encodeSubTable

protected void encodeSubTable(javax.faces.context.FacesContext context,
                              DataTable table,
                              SubTable subTable,
                              int rowIndex,
                              String rowIndexVar)
                       throws IOException
Throws:
IOException


Copyright © 2013. All Rights Reserved.