Class DataTableRenderer

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

public class DataTableRenderer extends DataRenderer
  • Constructor Details

    • DataTableRenderer

      public DataTableRenderer()
  • Method Details

    • 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
    • render

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

      protected void preRender(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, int columnStart, int columnEnd, String tbodyId) throws IOException
      Throws:
      IOException
    • encodeVirtualScrollBody

      protected void encodeVirtualScrollBody(javax.faces.context.FacesContext context, DataTable table, String tableStyle, String tableStyleClass, int columnStart, int columnEnd, String tbodyId) throws IOException
      Throws:
      IOException
    • encodeColumnHeader

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

      protected String resolveDefaultSortIcon(SortMeta sortMeta)
    • encodeColumnHeaderContent

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

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

      protected void encodeDefaultFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException
    • encodeFilterInput

      protected void encodeFilterInput(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue) throws IOException
      Throws:
      IOException
    • findFilterValueForColumn

      protected Object findFilterValueForColumn(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String filterId)
    • encodeColumnFooter

      public 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
      Throws:
      IOException
    • encodeThead

      protected void encodeThead(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String theadId, String columnGroupType) throws IOException
      Throws:
      IOException
    • encodeTbody

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

      public void encodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly, int columnStart, int columnEnd, String tbodyId) throws IOException
      Throws:
      IOException
    • encodeRows

      protected void encodeRows(javax.faces.context.FacesContext context, DataTable table, int first, int last, int columnStart, int columnEnd) throws IOException
      Throws:
      IOException
    • encodeFrozenRows

      protected void encodeFrozenRows(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd) throws IOException
      Throws:
      IOException
    • encodeSummaryRow

      protected void encodeSummaryRow(javax.faces.context.FacesContext context, List<SummaryRow> summaryRows, SortMeta sort) throws IOException
      Throws:
      IOException
    • encodeHeaderRow

      protected void encodeHeaderRow(javax.faces.context.FacesContext context, DataTable table, HeaderRow headerRow) throws IOException
      Throws:
      IOException
    • encodeRow

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

      public boolean encodeRow(javax.faces.context.FacesContext context, DataTable table, int rowIndex, int columnStart, int columnEnd) throws IOException
      Throws:
      IOException
    • encodeCell

      protected void encodeCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, boolean selected, boolean rowSelectionEnabled, int rowIndex) throws IOException
      Throws:
      IOException
    • encodeDynamicCell

      protected void encodeDynamicCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column) throws IOException
      Encodes dynamic column. Allows to override default behavior.
      Throws:
      IOException
    • encodeDefaultFieldCell

      protected void encodeDefaultFieldCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer) throws IOException
      Throws:
      IOException
    • encodeTFoot

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

      protected void encodeTFoot(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String tfootId, String columnGroupType) 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
    • encodeRadio

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

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

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

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

      protected void encodeNativeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled) 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
    • isInSameGroup

      protected boolean isInSameGroup(javax.faces.context.FacesContext context, DataTable table, int currentRowIndex, int step, javax.el.ValueExpression groupByVE, boolean loadFirstRowOfNextPage)
    • encodeSortableHeaderOnReflow

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

      protected Map<SortMeta,String> getSortableColumnHeaders(javax.faces.context.FacesContext context, DataTable table)
    • hasColumnDefaultRendering

      protected boolean hasColumnDefaultRendering(DataTable table, UIColumn column)