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 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)
           
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)
           
protected  void encodeEditedRow(javax.faces.context.FacesContext context, DataTable table)
           
 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, String tag)
           
protected  void encodeFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
           
protected  void encodeLiveRows(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodeMarkup(javax.faces.context.FacesContext context, DataTable table)
           
protected  void encodePaginatorMarkup(javax.faces.context.FacesContext context, DataTable table, String position, String tag, String styleClass)
           
protected  void encodeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled)
           
protected  void encodeRegularCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String clientId, boolean selected)
           
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, int scrollWidth)
           
protected  void encodeScrollBody(javax.faces.context.FacesContext context, DataTable table, String containerStyle, 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)
           
 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()
           
 
Methods inherited from class org.primefaces.renderkit.DataRenderer
encodeFacet, encodePaginatorConfig, encodePaginatorMarkup
 
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endScript, escapeText, getActionURL, getEscapedClientId, getOnclickBehaviors, getResourceRequestPath, getResourceURL, isAjaxRequest, isPostBack, isPostback, isValueBlank, isValueEmpty, renderChild, renderChildren, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, shouldRenderAttribute, 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,
                                     int scrollWidth)
                              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 containerStyle,
                                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

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

encodeTbody

public void encodeTbody(javax.faces.context.FacesContext context,
                        DataTable table,
                        boolean dataOnly)
                 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

encodeRegularCell

protected void encodeRegularCell(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,
                           String tag)
                    throws IOException
Throws:
IOException

encodePaginatorMarkup

protected void encodePaginatorMarkup(javax.faces.context.FacesContext context,
                                     DataTable table,
                                     String position,
                                     String tag,
                                     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

encodeEditedRow

protected void encodeEditedRow(javax.faces.context.FacesContext context,
                               DataTable table)
                        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 © 2012. All Rights Reserved.