public abstract class BaseTableRenderer extends HtmlBasicRenderer
| Modifier and Type | Class and Description |
|---|---|
protected static class |
BaseTableRenderer.TableMetaInfo |
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.ParamEMPTY_PARAMS, logger| Constructor and Description |
|---|
BaseTableRenderer() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearMetaInfo(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table)
Removes the cached TableMetaInfo from the specified component.
|
protected String |
createKey(javax.faces.component.UIComponent table)
Creates a unique key based on the provided
UIComponent with
which the TableMetaInfo can be looked up. |
protected BaseTableRenderer.TableMetaInfo |
getMetaInfo(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table)
Returns a
TableMetaInfo object containing details such
as row and column classes, columns, and a mechanism for scrolling through
the row/column classes. |
protected void |
renderCaption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the caption of the table applying the values of
captionClass as the class and captionStyle
as the style if either are present. |
protected abstract void |
renderFooter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Called to render the opening/closing
tfoot elements
and any content nested between. |
protected abstract void |
renderHeader(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Called to render the opening/closing
thead elements
and any content nested between. |
protected abstract void |
renderRow(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.component.UIComponent row,
javax.faces.context.ResponseWriter writer)
Call to render the content that should be included between opening
and closing
tr elements. |
protected void |
renderRowEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the closing
rt element. |
protected void |
renderRowStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the starting
tr element applying any values
from the rowClasses attribute. |
protected void |
renderTableBodyEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the closing
tbody element. |
protected void |
renderTableBodyStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the starting
tbody element. |
protected void |
renderTableEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
Renders the closing
table element. |
protected void |
renderTableStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer,
Attribute[] attributes)
Renders the start of a table and applies the value of
styleClass if available and renders any
pass through attributes that may be specified. |
augmentIdReference, convertClientId, decode, decodeBehaviors, encodeEnd, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getRendersChildren, getValue, isBehaviorSource, rendererParamsNotNull, setSubmittedValue, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessaryprotected abstract void renderHeader(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
thead elements
and any content nested between.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected abstract void renderFooter(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
tfoot elements
and any content nested between.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected abstract void renderRow(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.component.UIComponent row,
javax.faces.context.ResponseWriter writer)
throws IOException
tr elements.context - the FacesContext for the current requesttable - the table that's being renderedrow - the current row (if any - an implmenetation may not need this)writer - the current writerIOException - if content cannot be writtenprotected void renderTableStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer,
Attribute[] attributes)
throws IOException
styleClass if available and renders any
pass through attributes that may be specified.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerattributes - pass-through attributes that the component
supportsIOException - if content cannot be writtenprotected void renderTableEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
table element.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected void renderCaption(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
captionClass as the class and captionStyle
as the style if either are present.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected void renderTableBodyStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
tbody element.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected void renderTableBodyEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
tbody element.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected void renderRowStart(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
tr element applying any values
from the rowClasses attribute.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected void renderRowEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.context.ResponseWriter writer)
throws IOException
rt element.context - the FacesContext for the current requesttable - the table that's being renderedwriter - the current writerIOException - if content cannot be writtenprotected BaseTableRenderer.TableMetaInfo getMetaInfo(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table)
TableMetaInfo object containing details such
as row and column classes, columns, and a mechanism for scrolling through
the row/column classes.context - the FacesContext for the current requesttable - the table that's being renderedTableMetaInfo for provided tableprotected void clearMetaInfo(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table)
context - the FacesContext for the current requesttable - the table from which the TableMetaInfo will be removedprotected String createKey(javax.faces.component.UIComponent table)
UIComponent with
which the TableMetaInfo can be looked up.table - the table that's being renderedCopyright © 2010–2020 JBoss by Red Hat. All rights reserved.