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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table)
Removes the cached TableMetaInfo from the specified component.
|
protected String |
createKey(jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Called to render the opening/closing
tfoot elements and any content nested between. |
protected abstract void |
renderHeader(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Called to render the opening/closing
thead elements and any content nested between. |
protected abstract void |
renderRow(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.component.UIComponent row,
jakarta.faces.context.ResponseWriter writer)
Call to render the content that should be included between opening and closing
tr elements. |
protected void |
renderRowEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Renders the closing
rt element. |
protected void |
renderRowStart(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Renders the starting
tr element applying any values from the rowClasses attribute. |
protected void |
renderTableBodyEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Renders the closing
tbody element. |
protected void |
renderTableBodyStart(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Renders the starting
tbody element. |
protected void |
renderTableEnd(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.context.ResponseWriter writer)
Renders the closing
table element. |
protected void |
renderTableStart(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.faces.component.UIComponent row,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table,
jakarta.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(jakarta.faces.context.FacesContext context, jakarta.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(jakarta.faces.context.FacesContext context,
jakarta.faces.component.UIComponent table)
context - the FacesContext for the current requesttable - the table from which the TableMetaInfo will be removedprotected String createKey(jakarta.faces.component.UIComponent table)
UIComponent with which the TableMetaInfo can be looked up.table - the table that's being renderedCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.