public abstract class AbstractExtendedTableRenderer extends AbstractExtendedRowsRenderer
| Modifier and Type | Class and Description |
|---|---|
protected class |
AbstractExtendedTableRenderer.G3HeaderEncodeStrategy |
protected class |
AbstractExtendedTableRenderer.RichHeaderEncodeStrategy |
protected class |
AbstractExtendedTableRenderer.SimpleHeaderEncodeStrategy |
AbstractExtendedRowsRenderer.CompositeRendererEnablerCELL_CLASS_KEY, composite, MENU_ID, ROW_CLASS_KEY, SKIN_CELL_CLASS_KEY, SKIN_FIRST_ROW_CLASS_KEY, SKIN_ROW_CLASS_KEY, TABLE_EVENT_ATTRS| Constructor and Description |
|---|
AbstractExtendedTableRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addInplaceInput(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column) |
protected java.lang.String |
buildAjaxFunction(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
boolean sortable,
org.ajax4jsf.javascript.JSFunctionDefinition onAjaxCompleteFunction) |
protected int |
calculateRowColumns(java.util.Iterator<javax.faces.component.UIComponent> col)
Calculate max number of columns per row.
|
void |
contributorsEncodeHere(javax.faces.context.FacesContext context,
UIDataTable table) |
java.lang.String |
createClientDataTable(javax.faces.context.FacesContext context,
UIExtendedDataTable table) |
protected void |
doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeColumns(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
Encode all table structure - colgroups definitions, caption, header,
footer
|
java.lang.String |
encodeDragDropChildScripts(javax.faces.context.FacesContext context,
UIDataTable component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeFooter(javax.faces.context.FacesContext context,
UIExtendedDataTable table) |
void |
encodeHeader(javax.faces.context.FacesContext context,
UIExtendedDataTable table) |
protected void |
encodeHeaderFacets(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTable table,
java.util.Iterator<UIColumn> headers,
java.lang.String skinCellClass,
java.lang.String headerClass,
java.lang.String facetName,
java.lang.String element,
int colCount) |
void |
encodeNamespace(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeNoDataRow(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeOneRow(javax.faces.context.FacesContext context,
ExtendedTableHolder holder) |
protected void |
encodeRowId(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTable table,
int rowId)
Row ID generator
|
protected void |
encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String skinClass,
java.lang.String rowClass,
UIDataTable table,
TableHolder holder,
javax.faces.context.ResponseWriter writer) |
protected void |
encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String rowClass,
UIDataTable table,
TableHolder holder,
javax.faces.context.ResponseWriter writer) |
void |
encodeScriptIfNecessary(javax.faces.context.FacesContext context,
UIExtendedDataTable table) |
void |
encodeTableMenu(javax.faces.context.FacesContext context,
UIExtendedDataTable table) |
protected java.lang.String |
getCellSkinClass() |
protected org.ajax4jsf.javascript.JSFunction |
getChangeColumnVisibilityFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected int |
getColumnsCount(UIDataTable table)
Calculate total number of columns in table.
|
protected java.lang.String |
getFirstRowSkinClass() |
protected org.ajax4jsf.javascript.JSFunction |
getGroupFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getGroupFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table) |
static java.lang.String |
getJavaScriptVarName(javax.faces.context.FacesContext context,
UIDataTable grid) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getOnAjaxCompleteFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getOnGroupToggleFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getOnResizeFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunction |
getPreSendAjaxRequestFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected java.lang.String |
getRowSkinClass() |
protected java.lang.String |
getScriptContributions(javax.faces.context.FacesContext context,
UIDataTable grid) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getShowMenuFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunction |
getSortFunction(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getSortFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table) |
protected org.ajax4jsf.javascript.JSFunctionDefinition |
getSortFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table,
java.lang.Boolean asc) |
boolean |
isColumnFacetPresent(UIDataTable table,
java.lang.String facetName) |
protected boolean |
isColumnRendered(javax.faces.component.UIComponent component) |
void |
renderDragSupport(javax.faces.context.FacesContext context,
UIColumn column,
java.lang.String dragSourceId,
java.lang.String indicatorId,
java.lang.String dragLabel) |
void |
renderDropSupport(javax.faces.context.FacesContext context,
UIColumn column,
java.lang.String dropTargetId,
boolean before) |
protected boolean |
rowGroupChanged(javax.faces.context.FacesContext context,
ExtendedTableHolder holder) |
doCleanup, encodeCaption, encodeCellChildren, encodeChildren, encodeRowEvents, encodeRows, encodeRows, encodeStyle, encodeStyleClass, encodeTableHeaderFacet, getRendersChildren, getScripts, getStyles, processencodeResourcesArray, encodeToHead, getHeaderScripts, getHeaderStylespublic void encodeColumns(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
throws java.io.IOException
context - table - java.io.IOExceptionpublic void encodeHeader(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
throws java.io.IOException
java.io.IOExceptionpublic boolean isColumnFacetPresent(UIDataTable table, java.lang.String facetName)
protected boolean isColumnRendered(javax.faces.component.UIComponent component)
component - protected void encodeHeaderFacets(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTable table,
java.util.Iterator<UIColumn> 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,
UIExtendedDataTable table)
throws java.io.IOException
java.io.IOExceptionprotected boolean rowGroupChanged(javax.faces.context.FacesContext context,
ExtendedTableHolder holder)
public void encodeOneRow(javax.faces.context.FacesContext context,
ExtendedTableHolder holder)
throws java.io.IOException
encodeOneRow in class AbstractExtendedRowsRendererjava.io.IOExceptionprotected void encodeRowStart(javax.faces.context.FacesContext context,
java.lang.String rowClass,
UIDataTable table,
TableHolder holder,
javax.faces.context.ResponseWriter writer)
throws java.io.IOException
java.io.IOExceptionpublic void encodeNoDataRow(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
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,
TableHolder holder,
javax.faces.context.ResponseWriter writer)
throws java.io.IOException
java.io.IOExceptionprotected void encodeRowId(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTable table,
int rowId)
throws java.io.IOException
context - current FacesContextwriter - ResponseWriter for FacesContexttable - table for which this row is being encodedrowId - new rowId to encodejava.io.IOException - if ResponseWriter failsprotected int getColumnsCount(UIDataTable table)
context - table - protected int calculateRowColumns(java.util.Iterator<javax.faces.component.UIComponent> col)
col - -
Iterator other all columns in table.public void encodeScriptIfNecessary(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
throws java.io.IOException
java.io.IOExceptionpublic java.lang.String createClientDataTable(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getShowMenuFunction(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getSortFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getSortFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table,
java.lang.Boolean asc)
protected org.ajax4jsf.javascript.JSFunction getSortFunction(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunction getGroupFunction(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getGroupFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getOnGroupToggleFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunctionDefinition getOnResizeFunctionDef(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunction getChangeColumnVisibilityFunction(javax.faces.context.FacesContext context,
UIDataTable table)
protected org.ajax4jsf.javascript.JSFunction getPreSendAjaxRequestFunction(javax.faces.context.FacesContext context,
UIDataTable table)
protected void doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
doDecode in class org.ajax4jsf.renderkit.RendererBasepublic void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeBegin in class org.ajax4jsf.renderkit.RendererBasejava.io.IOExceptionpublic 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)
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String buildAjaxFunction(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent column,
boolean sortable,
org.ajax4jsf.javascript.JSFunctionDefinition onAjaxCompleteFunction)
public java.lang.String encodeDragDropChildScripts(javax.faces.context.FacesContext context,
UIDataTable component)
throws java.io.IOException
java.io.IOExceptionpublic void encodeNamespace(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOExceptionpublic void renderDragSupport(javax.faces.context.FacesContext context,
UIColumn column,
java.lang.String dragSourceId,
java.lang.String indicatorId,
java.lang.String dragLabel)
throws java.io.IOException
java.io.IOExceptionpublic void renderDropSupport(javax.faces.context.FacesContext context,
UIColumn column,
java.lang.String dropTargetId,
boolean before)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String getJavaScriptVarName(javax.faces.context.FacesContext context,
UIDataTable grid)
protected java.lang.String getScriptContributions(javax.faces.context.FacesContext context,
UIDataTable grid)
protected org.ajax4jsf.javascript.JSFunctionDefinition getOnAjaxCompleteFunction(javax.faces.context.FacesContext context,
UIDataTable table)
public void encodeTableMenu(javax.faces.context.FacesContext context,
UIExtendedDataTable table)
throws java.io.IOException
java.io.IOExceptionpublic void contributorsEncodeHere(javax.faces.context.FacesContext context,
UIDataTable table)
throws java.io.IOException
java.io.IOExceptionCopyright © 2013. All Rights Reserved.