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 Summary
Constructors Constructor Description DataTableRenderer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
protected void
encodeCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, boolean selected, boolean disabled, int rowIndex)
protected void
encodeCheckbox(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled, String styleClass, boolean isHeaderCheckbox)
void
encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
void
encodeColumnFooter(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
void
encodeColumnHeader(javax.faces.context.FacesContext context, DataTable table, UIColumn column)
protected void
encodeColumnHeaderContent(javax.faces.context.FacesContext context, DataTable table, UIColumn column, SortMeta sortMeta)
protected void
encodeColumnSelection(javax.faces.context.FacesContext context, DataTable table, UIColumn column, boolean selected, boolean disabled)
protected void
encodeDefaultFieldCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer)
protected void
encodeDefaultFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer)
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
encodeFilterInput(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue, String ariaLabelId)
protected void
encodeFilterInputSelect(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue, String ariaLabelId)
protected void
encodeFilterInputText(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue, String ariaLabelId)
protected void
encodeFrozenRows(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd)
protected void
encodeFrozenScrollableTable(javax.faces.context.FacesContext context, DataTable table, int frozenColumns)
protected void
encodeHeaderRow(javax.faces.context.FacesContext context, DataTable table, HeaderRow headerRow)
protected void
encodeMarkup(javax.faces.context.FacesContext context, DataTable table)
protected void
encodeNativeCheckbox(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled, boolean isHeaderCheckbox)
protected void
encodeNativeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled)
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)
boolean
encodeRow(javax.faces.context.FacesContext context, DataTable table, String clientId, int rowIndex, int columnStart, int columnEnd)
protected void
encodeRows(javax.faces.context.FacesContext context, DataTable table, int first, int last, int columnStart, int columnEnd)
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, int columnStart, int columnEnd, String tbodyId)
protected void
encodeSortableHeaderOnReflow(javax.faces.context.FacesContext context, DataTable table)
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, SummaryRow summaryRow, SortMeta sort)
void
encodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly)
void
encodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly, int columnStart, int columnEnd, String tbodyId)
protected void
encodeTFoot(javax.faces.context.FacesContext context, DataTable table)
protected void
encodeTFoot(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String tfootId, String columnGroupType)
protected void
encodeThead(javax.faces.context.FacesContext context, DataTable table)
protected void
encodeThead(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String theadId, String columnGroupType)
protected void
encodeVirtualScrollBody(javax.faces.context.FacesContext context, DataTable table, String tableStyle, String tableStyleClass, int columnStart, int columnEnd, String tbodyId)
protected Object
findFilterValueForColumn(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String filterId)
protected javax.faces.model.SelectItem[]
getFilterOptions(UIColumn column)
boolean
getRendersChildren()
protected List<String>
getSortableHeadersText(javax.faces.context.FacesContext context, DataTable table)
protected boolean
hasColumnDefaultRendering(DataTable table, UIColumn column)
protected boolean
isInSameGroup(javax.faces.context.FacesContext context, DataTable table, int currentRowIndex, int step, javax.el.ValueExpression groupByVE, javax.el.ELContext eLContext)
protected void
preRender(javax.faces.context.FacesContext context, DataTable table)
protected String
resolveDefaultSortIcon(SortMeta sortMeta)
-
Methods inherited from class org.primefaces.renderkit.DataRenderer
addPaginatorElement, encodeFacet, encodePaginatorConfig, encodePaginatorMarkup, getHeaderLabel, removePaginatorElement
-
Methods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getResourceRequestPath, getResourceURL, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderValidationMetadata, shouldRenderAttribute, shouldWriteId
-
-
-
-
Method Detail
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
- Overrides:
decode
in classjavax.faces.render.Renderer
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException
- Overrides:
encodeEnd
in classjavax.faces.render.Renderer
- 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
-
encodeFrozenScrollableTable
protected void encodeFrozenScrollableTable(javax.faces.context.FacesContext context, DataTable table, int frozenColumns) 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
-
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, String ariaLabelId) throws IOException
- Throws:
IOException
-
encodeFilterInputSelect
protected void encodeFilterInputSelect(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue, String ariaLabelId) throws IOException
- Throws:
IOException
-
encodeFilterInputText
protected void encodeFilterInputText(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue, String ariaLabelId) throws IOException
- Throws:
IOException
-
findFilterValueForColumn
protected Object findFilterValueForColumn(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String filterId)
-
getFilterOptions
protected javax.faces.model.SelectItem[] getFilterOptions(UIColumn column)
-
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, SummaryRow summaryRow, 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, String clientId, int rowIndex) throws IOException
- Throws:
IOException
-
encodeRow
public boolean encodeRow(javax.faces.context.FacesContext context, DataTable table, String clientId, 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 disabled, int rowIndex) throws IOException
- 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 classjavax.faces.render.Renderer
- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren
in classjavax.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 disabled) 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, boolean isHeaderCheckbox) 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, javax.el.ELContext eLContext)
-
encodeSortableHeaderOnReflow
protected void encodeSortableHeaderOnReflow(javax.faces.context.FacesContext context, DataTable table) throws IOException
- Throws:
IOException
-
getSortableHeadersText
protected List<String> getSortableHeadersText(javax.faces.context.FacesContext context, DataTable table)
-
-