org.richfaces.renderkit
Class AbstractTableRenderer
java.lang.Object
javax.faces.render.Renderer
org.richfaces.renderkit.RendererBase
org.richfaces.renderkit.AbstractRowsRenderer
org.richfaces.renderkit.SortingFilteringRowsRenderer
org.richfaces.renderkit.AbstractTableBaseRenderer
org.richfaces.renderkit.AbstractTableRenderer
- All Implemented Interfaces:
- org.ajax4jsf.model.DataVisitor, org.richfaces.renderkit.MetaComponentRenderer
- Direct Known Subclasses:
- CollapsibleSubTableRenderer, DataTableRenderer
public abstract class AbstractTableRenderer
- extends AbstractTableBaseRenderer
- implements org.richfaces.renderkit.MetaComponentRenderer
- Author:
- Anton Belevich
Method Summary |
abstract boolean |
containsThead()
|
RowHolderBase |
createRowHolder(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object[] options)
|
void |
decodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
|
protected void |
doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Template method for custom decoding of concrete renderer. |
protected void |
doEncodeChildren(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeAfterRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodeParentTBody,
boolean partialUpdate)
|
void |
encodeBeforeRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodeParentTBody,
boolean partialUpdate)
|
abstract void |
encodeClientScript(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
|
protected void |
encodeColumnFacet(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTableBase dataTableBase,
String facetName,
int colCount,
String cellClass)
|
void |
encodeFooterFacet(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTable,
boolean encodePartialUpdate)
|
void |
encodeHeaderFacet(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTable,
boolean encodePartialUpdate)
|
abstract void |
encodeHiddenInput(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
|
protected void |
encodeHiddens(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
Object[] params)
|
void |
encodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
|
void |
encodeNoDataFacetOrLabel(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase)
|
abstract boolean |
encodeParentTBody(UIDataTableBase dataTableBase)
|
void |
encodeTableBodyEnd(javax.faces.context.ResponseWriter writer)
|
void |
encodeTableBodyStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase)
|
void |
encodeTableEnd(javax.faces.context.ResponseWriter writer)
|
protected void |
encodeTableFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
String id,
int columns,
javax.faces.component.UIComponent footer,
String facetName,
String rowClass,
String cellClass,
boolean encodePartialUpdate)
|
void |
encodeTableFacets(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase dataTable)
|
void |
encodeTableRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodePartialUpdate)
|
void |
encodeTableStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
|
void |
encodeTableStructure(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase dataTable)
|
abstract String |
getCellSkinClass()
|
abstract String |
getColumnFooterCellSkinClass()
|
abstract String |
getColumnFooterFirstSkinClass()
|
abstract String |
getColumnFooterSkinClass()
|
abstract String |
getColumnHeaderCellSkinClass()
|
abstract String |
getColumnHeaderFirstSkinClass()
|
abstract String |
getColumnHeaderSkinClass()
|
abstract String |
getFirstRowSkinClass()
|
abstract String |
getFooterCellSkinClass()
|
abstract String |
getFooterFirstSkinClass()
|
abstract String |
getFooterSkinClass()
|
abstract String |
getHeaderCellSkinClass()
|
abstract EncodeStrategy |
getHeaderEncodeStrategy(javax.faces.component.UIComponent column,
String tableFacetName)
|
abstract String |
getHeaderFirstSkinClass()
|
abstract String |
getHeaderSkinClass()
|
abstract EncodeStrategy |
getHiddenContainerStrategy(UIDataTableBase dataTableBase)
|
abstract String |
getNoDataCellClass()
|
abstract String |
getNoDataClass()
|
abstract String |
getRowSkinClass()
|
abstract String |
getTableBodySkinClass()
|
abstract String |
getTableSkinClass()
|
boolean |
isColumnAttributeSet(UIDataTableBase table,
String attributeName)
|
protected boolean |
isEncodeHeaders(UIDataTableBase table)
|
protected String |
mergeStyleClasses(String classAttribibute,
String skinClass,
javax.faces.component.UIComponent component)
|
protected void |
partialEnd(javax.faces.context.FacesContext facesContext)
|
protected void |
partialStart(javax.faces.context.FacesContext facesContext,
String id)
|
protected void |
putRowStylesIntoContext(javax.faces.context.FacesContext facesContext,
RowHolderBase rowHolder)
|
Methods inherited from class org.richfaces.renderkit.AbstractTableBaseRenderer |
encodeColumn, encodeColumnEnd, encodeColumnStart, encodeFakeRow, encodeFirstRowEnd, encodeFirstRowStart, encodeRowEnd, encodeRowStart, encodeStyle, encodeStyleClass, getCellClass, getCellElement, getColumnsCount, getFirstRowClass, getRowClass, isEmpty, isEmptyAttr, saveRowStyles, setCellElement |
Methods inherited from class org.richfaces.renderkit.AbstractRowsRenderer |
doCleanup, encodeRow, encodeRows, get, getColumnClass, getColumnClasses, getRendersChildren, getRowClass, getRowClassAttribute, getRowClasses, process, processRows, put, renderRowHandlers |
Methods inherited from class org.richfaces.renderkit.RendererBase |
concatClasses, concatStyles, decode, doEncodeBegin, doEncodeEnd, encodeBegin, encodeChildren, encodeEnd, getComponentClass, getSkin, getUtils, preDecode, preEncodeBegin, queueComponentEventForBehaviorEvent, renderChildren |
Methods inherited from class javax.faces.render.Renderer |
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HIDDEN_CONTAINER_ID
public static final String HIDDEN_CONTAINER_ID
- See Also:
- Constant Field Values
AbstractTableRenderer
public AbstractTableRenderer()
getHiddenContainerStrategy
public abstract EncodeStrategy getHiddenContainerStrategy(UIDataTableBase dataTableBase)
isColumnAttributeSet
public boolean isColumnAttributeSet(UIDataTableBase table,
String attributeName)
createRowHolder
public RowHolderBase createRowHolder(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object[] options)
- Specified by:
createRowHolder
in class AbstractRowsRenderer
doDecode
protected void doDecode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
- Description copied from class:
RendererBase
- Template method for custom decoding of concrete renderer.
All parameters checking if performed in original
decode
method.
- Overrides:
doDecode
in class RendererBase
putRowStylesIntoContext
protected void putRowStylesIntoContext(javax.faces.context.FacesContext facesContext,
RowHolderBase rowHolder)
isEncodeHeaders
protected boolean isEncodeHeaders(UIDataTableBase table)
encodeTableStructure
public void encodeTableStructure(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase dataTable)
throws IOException
- Throws:
IOException
encodeBeforeRows
public void encodeBeforeRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodeParentTBody,
boolean partialUpdate)
throws IOException
- Throws:
IOException
encodeAfterRows
public void encodeAfterRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodeParentTBody,
boolean partialUpdate)
throws IOException
- Throws:
IOException
encodeParentTBody
public abstract boolean encodeParentTBody(UIDataTableBase dataTableBase)
encodeTableFacets
public void encodeTableFacets(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase dataTable)
throws IOException
- Throws:
IOException
encodeTableRows
public void encodeTableRows(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
boolean encodePartialUpdate)
throws IOException
- Throws:
IOException
encodeNoDataFacetOrLabel
public void encodeNoDataFacetOrLabel(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase)
throws IOException
- Throws:
IOException
doEncodeChildren
protected void doEncodeChildren(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
doEncodeChildren
in class AbstractRowsRenderer
- Throws:
IOException
encodeTableStart
public void encodeTableStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
throws IOException
- Throws:
IOException
encodeHiddens
protected void encodeHiddens(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase,
Object[] params)
throws IOException
- Throws:
IOException
encodeTableEnd
public void encodeTableEnd(javax.faces.context.ResponseWriter writer)
throws IOException
- Throws:
IOException
encodeClientScript
public abstract void encodeClientScript(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
throws IOException
- Throws:
IOException
encodeHiddenInput
public abstract void encodeHiddenInput(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext context,
UIDataTableBase component)
throws IOException
- Throws:
IOException
encodeTableBodyStart
public void encodeTableBodyStart(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTableBase)
throws IOException
- Throws:
IOException
encodeTableBodyEnd
public void encodeTableBodyEnd(javax.faces.context.ResponseWriter writer)
throws IOException
- Throws:
IOException
encodeFooterFacet
public void encodeFooterFacet(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTable,
boolean encodePartialUpdate)
throws IOException
- Throws:
IOException
mergeStyleClasses
protected String mergeStyleClasses(String classAttribibute,
String skinClass,
javax.faces.component.UIComponent component)
encodeHeaderFacet
public void encodeHeaderFacet(javax.faces.context.ResponseWriter writer,
javax.faces.context.FacesContext facesContext,
UIDataTableBase dataTable,
boolean encodePartialUpdate)
throws IOException
- Throws:
IOException
encodeColumnFacet
protected void encodeColumnFacet(javax.faces.context.FacesContext context,
javax.faces.context.ResponseWriter writer,
UIDataTableBase dataTableBase,
String facetName,
int colCount,
String cellClass)
throws IOException
- Throws:
IOException
encodeTableFacet
protected void encodeTableFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
String id,
int columns,
javax.faces.component.UIComponent footer,
String facetName,
String rowClass,
String cellClass,
boolean encodePartialUpdate)
throws IOException
- Throws:
IOException
getHeaderEncodeStrategy
public abstract EncodeStrategy getHeaderEncodeStrategy(javax.faces.component.UIComponent column,
String tableFacetName)
containsThead
public abstract boolean containsThead()
getTableSkinClass
public abstract String getTableSkinClass()
getTableBodySkinClass
public abstract String getTableBodySkinClass()
getFirstRowSkinClass
public abstract String getFirstRowSkinClass()
getRowSkinClass
public abstract String getRowSkinClass()
getHeaderCellSkinClass
public abstract String getHeaderCellSkinClass()
getHeaderSkinClass
public abstract String getHeaderSkinClass()
getHeaderFirstSkinClass
public abstract String getHeaderFirstSkinClass()
getColumnHeaderCellSkinClass
public abstract String getColumnHeaderCellSkinClass()
getColumnHeaderSkinClass
public abstract String getColumnHeaderSkinClass()
getColumnHeaderFirstSkinClass
public abstract String getColumnHeaderFirstSkinClass()
getFooterCellSkinClass
public abstract String getFooterCellSkinClass()
getFooterSkinClass
public abstract String getFooterSkinClass()
getFooterFirstSkinClass
public abstract String getFooterFirstSkinClass()
getColumnFooterCellSkinClass
public abstract String getColumnFooterCellSkinClass()
getColumnFooterSkinClass
public abstract String getColumnFooterSkinClass()
getColumnFooterFirstSkinClass
public abstract String getColumnFooterFirstSkinClass()
getCellSkinClass
public abstract String getCellSkinClass()
getNoDataClass
public abstract String getNoDataClass()
getNoDataCellClass
public abstract String getNoDataCellClass()
encodeMetaComponent
public void encodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
throws IOException
- Specified by:
encodeMetaComponent
in interface org.richfaces.renderkit.MetaComponentRenderer
- Throws:
IOException
decodeMetaComponent
public void decodeMetaComponent(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String metaComponentId)
- Specified by:
decodeMetaComponent
in interface org.richfaces.renderkit.MetaComponentRenderer
partialStart
protected void partialStart(javax.faces.context.FacesContext facesContext,
String id)
throws IOException
- Throws:
IOException
partialEnd
protected void partialEnd(javax.faces.context.FacesContext facesContext)
throws IOException
- Throws:
IOException
Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.