public abstract class AbstractTableRenderer extends AbstractRowsRenderer
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractTableRenderer.RichHeaderEncodeStrategy |
protected class |
AbstractTableRenderer.SimpleHeaderEncodeStrategy |
CELL_CLASS_KEY, ROW_CLASS_KEY, SKIN_CELL_CLASS_KEY, SKIN_FIRST_ROW_CLASS_KEY, SKIN_ROW_CLASS_KEY, TABLE_EVENT_ATTRS| Constructor and Description |
|---|
AbstractTableRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInplaceInput(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
java.lang.String buffer) |
protected java.lang.String |
buildAjaxFunction(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
boolean sortable) |
protected int |
calculateRowColumns(java.util.Iterator<javax.faces.component.UIComponent> col)
Calculate max number of columns per row.
|
protected void |
doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeFooter(javax.faces.context.FacesContext context,
UIDataTable table,
int columns) |
void |
encodeHeader(javax.faces.context.FacesContext context,
UIDataTable table,
int numberOfColumns) |
protected void |
encodeHeaderFacets(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
java.util.Iterator<javax.faces.component.UIComponent> headers,
java.lang.String skinCellClass,
java.lang.String headerClass,
java.lang.String facetName,
java.lang.String element,
int colCount) |
void |
encodeOneRow(javax.faces.context.FacesContext context,
TableHolder holder) |
protected void |
encodeRowEvents(javax.faces.context.FacesContext context,
org.ajax4jsf.component.UIDataAdaptor table) |
protected void |
encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String skinClass,
java.lang.String rowClass,
UIDataTable table,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String rowClass,
UIDataTable table,
javax.faces.context.ResponseWriter writer) |
void |
encodeTableStructure(javax.faces.context.FacesContext context,
UIDataTable table)
Encode all table structure - colgroups definitions, caption, header,
footer
|
void |
encodeTBody(javax.faces.context.FacesContext context,
UIDataTable table)
Encode data table body
|
void |
encodeTBodyAjax(javax.faces.context.FacesContext context,
UIDataTable table)
Helper method for rendering data table tBody only.
|
protected java.lang.String |
getCellSkinClass() |
protected int |
getColumnsCount(UIDataTable table)
Calculate total number of columns in table.
|
protected java.lang.String |
getFirstRowSkinClass() |
protected java.lang.String |
getRowSkinClass() |
protected org.ajax4jsf.resource.InternetResource[] |
getScripts() |
boolean |
isColumnFacetPresent(UIDataTable table,
java.lang.String facetName) |
protected boolean |
isColumnRendered(javax.faces.component.UIComponent component) |
boolean |
isHeaderFactoryColumnAttributePresent(UIDataTable table,
java.lang.String attributeName)
Returns true if specified attribute (when present on the column)
should generate header even if it is not specified on the table
|
protected boolean |
isRequiresScripts(javax.faces.context.FacesContext context) |
boolean |
renderBodyOnly(javax.faces.context.FacesContext context,
UIDataTable table)
Check whether to render tbody only by Ajax call
|
protected void |
setRequiresScripts(javax.faces.context.FacesContext context) |
doCleanup, encodeCaption, encodeCellChildren, encodeRows, encodeRows, encodeStyle, encodeStyleClass, encodeTableHeaderFacet, getRendersChildren, processencodeResourcesArray, encodeToHead, getHeaderScripts, getHeaderStyles, getStylespublic void encodeTBody(javax.faces.context.FacesContext context,
UIDataTable table)
throws java.io.IOException
context - table - java.io.IOExceptionpublic void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeChildren in class AbstractRowsRendererjava.io.IOExceptionpublic void encodeTBodyAjax(javax.faces.context.FacesContext context,
UIDataTable table)
throws java.io.IOException
context - table - java.io.IOExceptionpublic boolean renderBodyOnly(javax.faces.context.FacesContext context,
UIDataTable table)
context - table - public void encodeTableStructure(javax.faces.context.FacesContext context,
UIDataTable table)
throws java.io.IOException
context - table - java.io.IOExceptionpublic void encodeHeader(javax.faces.context.FacesContext context,
UIDataTable table,
int numberOfColumns)
throws java.io.IOException
java.io.IOExceptionpublic boolean isColumnFacetPresent(UIDataTable table, java.lang.String facetName)
public boolean isHeaderFactoryColumnAttributePresent(UIDataTable table, java.lang.String attributeName)
table - - rendered UIDataTableattributeName - - attribute nameprotected boolean isColumnRendered(javax.faces.component.UIComponent component)
component - protected void encodeHeaderFacets(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
java.util.Iterator<javax.faces.component.UIComponent> headers,
java.lang.String skinCellClass,
java.lang.String headerClass,
java.lang.String facetName,
java.lang.String element,
int colCount)
throws java.io.IOException
java.io.IOExceptionpublic void encodeFooter(javax.faces.context.FacesContext context,
UIDataTable table,
int columns)
throws java.io.IOException
java.io.IOExceptionpublic void encodeOneRow(javax.faces.context.FacesContext context,
TableHolder holder)
throws java.io.IOException
encodeOneRow in class AbstractRowsRendererjava.io.IOExceptionprotected void encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String rowClass,
UIDataTable table,
javax.faces.context.ResponseWriter writer)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getRowSkinClass()
protected java.lang.String getFirstRowSkinClass()
protected java.lang.String getCellSkinClass()
protected void encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String skinClass,
java.lang.String rowClass,
UIDataTable table,
javax.faces.context.ResponseWriter writer)
throws java.io.IOException
java.io.IOExceptionprotected int getColumnsCount(UIDataTable table)
context - table - protected int calculateRowColumns(java.util.Iterator<javax.faces.component.UIComponent> col)
col - -
Iterator other all columns in table.protected void doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
doDecode in class org.ajax4jsf.renderkit.RendererBasepublic void encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeEnd in class org.ajax4jsf.renderkit.RendererBasejava.io.IOExceptionprotected void addInplaceInput(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
java.lang.String buffer)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String buildAjaxFunction(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
boolean sortable)
protected void setRequiresScripts(javax.faces.context.FacesContext context)
protected boolean isRequiresScripts(javax.faces.context.FacesContext context)
protected org.ajax4jsf.resource.InternetResource[] getScripts()
getScripts in class org.ajax4jsf.renderkit.HeaderResourcesRendererBaseprotected void encodeRowEvents(javax.faces.context.FacesContext context,
org.ajax4jsf.component.UIDataAdaptor table)
throws java.io.IOException
encodeRowEvents in class AbstractRowsRendererjava.io.IOExceptionCopyright © 2014. All Rights Reserved.