Class DataTableRenderer
java.lang.Object
javax.faces.render.Renderer
org.primefaces.renderkit.CoreRenderer
org.primefaces.renderkit.DataRenderer
org.primefaces.component.datatable.DataTableRenderer
-
Field Summary
Fields inherited from class javax.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected voidencodeCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, boolean selected, boolean rowSelectionEnabled, int rowIndex) protected voidencodeCheckbox(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled, String styleClass, boolean isHeaderCheckbox) voidencodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) voidencodeColumnFooter(javax.faces.context.FacesContext context, DataTable table, UIColumn column) voidencodeColumnHeader(javax.faces.context.FacesContext context, DataTable table, UIColumn column) protected voidencodeColumnHeaderContent(javax.faces.context.FacesContext context, DataTable table, UIColumn column, SortMeta sortMeta) protected voidencodeColumnSelection(javax.faces.context.FacesContext context, DataTable table, UIColumn column, boolean selected, boolean rowSelectionEnabled) protected voidencodeDefaultFieldCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer) protected voidencodeDefaultFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column, javax.faces.context.ResponseWriter writer) protected voidencodeDynamicCell(javax.faces.context.FacesContext context, DataTable table, UIColumn column) Encodes dynamic column.voidencodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) protected voidencodeFacet(javax.faces.context.FacesContext context, DataTable table, javax.faces.component.UIComponent facet, String styleClass) protected voidencodeFilter(javax.faces.context.FacesContext context, DataTable table, UIColumn column) protected voidencodeFilterInput(UIColumn column, javax.faces.context.ResponseWriter writer, boolean disableTabbing, String filterId, String filterStyleClass, Object filterValue) protected voidencodeFrozenRows(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd) protected voidencodeHeaderRow(javax.faces.context.FacesContext context, DataTable table, HeaderRow headerRow) protected voidencodeMarkup(javax.faces.context.FacesContext context, DataTable table) protected voidencodeNativeCheckbox(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled) protected voidencodeNativeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled) protected voidencodeRadio(javax.faces.context.FacesContext context, DataTable table, boolean checked, boolean disabled) protected voidencodeRegularTable(javax.faces.context.FacesContext context, DataTable table) booleanbooleanencodeRow(javax.faces.context.FacesContext context, DataTable table, int rowIndex, int columnStart, int columnEnd) protected voidencodeRows(javax.faces.context.FacesContext context, DataTable table, int first, int last, int columnStart, int columnEnd) protected voidencodeScript(javax.faces.context.FacesContext context, DataTable table) protected voidencodeScrollableTable(javax.faces.context.FacesContext context, DataTable table) protected voidencodeScrollAreaEnd(javax.faces.context.FacesContext context) protected voidencodeScrollAreaStart(javax.faces.context.FacesContext context, DataTable table, String containerClass, String containerBoxClass, String tableStyle, String tableStyleClass) protected voidencodeScrollBody(javax.faces.context.FacesContext context, DataTable table, String tableStyle, String tableStyleClass, int columnStart, int columnEnd, String tbodyId) protected voidencodeSortableHeaderOnReflow(javax.faces.context.FacesContext context, DataTable table) protected voidencodeStateHolder(javax.faces.context.FacesContext context, DataTable table, String id, String value) protected voidencodeSubTable(javax.faces.context.FacesContext context, DataTable table, SubTable subTable, int first, int last) protected voidencodeSummaryRow(javax.faces.context.FacesContext context, List<SummaryRow> summaryRows, SortMeta sort) voidencodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly) voidencodeTbody(javax.faces.context.FacesContext context, DataTable table, boolean dataOnly, int columnStart, int columnEnd, String tbodyId) protected voidencodeTFoot(javax.faces.context.FacesContext context, DataTable table) protected voidencodeTFoot(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String tfootId, String columnGroupType) protected voidencodeThead(javax.faces.context.FacesContext context, DataTable table) protected voidencodeThead(javax.faces.context.FacesContext context, DataTable table, int columnStart, int columnEnd, String theadId, String columnGroupType) protected voidencodeVirtualScrollBody(javax.faces.context.FacesContext context, DataTable table, String tableStyle, String tableStyleClass, int columnStart, int columnEnd, String tbodyId) protected ObjectfindFilterValueForColumn(javax.faces.context.FacesContext context, DataTable table, UIColumn column, String filterId) booleangetSortableColumnHeaders(javax.faces.context.FacesContext context, DataTable table) protected booleanhasColumnDefaultRendering(DataTable table, UIColumn column) protected booleanisInSameGroup(javax.faces.context.FacesContext context, DataTable table, int currentRowIndex, int step, javax.el.ValueExpression groupByVE, boolean loadFirstRowOfNextPage) protected voidprotected voidprotected StringresolveDefaultSortIcon(SortMeta sortMeta) Methods inherited from class org.primefaces.renderkit.DataRenderer
addPaginatorElement, encodeFacet, encodePaginatorConfig, encodePaginatorMarkup, getHeaderLabel, removePaginatorElementMethods inherited from class org.primefaces.renderkit.CoreRenderer
buildAjaxRequest, buildAjaxRequest, buildAjaxRequest, buildDomEvent, buildNonAjaxRequest, buildNonAjaxRequest, decodeBehaviors, encodeClientBehaviors, encodeIndexedId, endsWithLenghtUnit, getEventBehaviors, getHighlighter, getIconOnlyButtonText, getResourceRequestPath, getResourceURL, getStyleBuilder, getStyleClassBuilder, getWidgetBuilder, isGrouped, isValueBlank, logDevelopmentWarning, preConfiguredAjaxRequestBuilder, preConfiguredAjaxRequestBuilder, renderAttribute, renderButtonValue, renderChild, renderChildren, renderDomEvent, renderDomEvents, renderDummyMarkup, renderDynamicPassThruAttributes, renderHiddenInput, renderOnchange, renderOnclick, renderPassThruAttributes, renderPassThruAttributes, renderPassThruAttributes, renderRTLDirection, renderValidationMetadata, shouldRenderAttribute, shouldWriteIdMethods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, getConvertedValue
-
Constructor Details
-
DataTableRenderer
public DataTableRenderer()
-
-
Method Details
-
decode
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) - Overrides:
decodein classjavax.faces.render.Renderer
-
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws IOException - Overrides:
encodeEndin classjavax.faces.render.Renderer- Throws:
IOException
-
render
- Throws:
IOException
-
preRender
-
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
- 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
-
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
-
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:
encodeChildrenin classjavax.faces.render.Renderer- Throws:
IOException
-
getRendersChildren
public boolean getRendersChildren()- Overrides:
getRendersChildrenin 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 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
-
hasColumnDefaultRendering
-