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 javax.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY
 
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 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)
           
protected  void encodeRows(javax.faces.context.FacesContext context, DataTable table, int first, int last)
           
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 first, int last)
           
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  void preEncode(javax.faces.context.FacesContext context, DataTable table)
           
protected  String resolveDefaultSortIcon(Object columnSortBy, Object 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, endScript, escapeJavaScriptForChain, escapeText, getActionURL, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getWidgetBuilder, isAjaxRequest, isPostback, isValueBlank, renderChild, renderChildren, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, 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

preEncode

protected void preEncode(javax.faces.context.FacesContext context,
                         DataTable table)

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(Object columnSortBy,
                                        Object 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

encodeRows

protected void encodeRows(javax.faces.context.FacesContext context,
                          DataTable table,
                          int first,
                          int last)
                   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)
                  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

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

encodeSubTable

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


Copyright © 2013. All rights reserved.