public abstract class BaseTableRenderer extends HtmlBasicRenderer
Modifier and Type | Class and Description |
---|---|
protected static class |
BaseTableRenderer.TableMetaInfo |
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
EMPTY_PARAMS, logger
PASSTHROUGH_RENDERER_LOCALNAME_KEY
Constructor and Description |
---|
BaseTableRenderer() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearMetaInfo(FacesContext context,
UIComponent table)
Removes the cached TableMetaInfo from the specified component.
|
protected String |
createKey(UIComponent table)
Creates a unique key based on the provided
UIComponent with
which the TableMetaInfo can be looked up. |
protected BaseTableRenderer.TableMetaInfo |
getMetaInfo(FacesContext context,
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(FacesContext context,
UIComponent table,
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(FacesContext context,
UIComponent table,
ResponseWriter writer)
Called to render the opening/closing
tfoot elements
and any content nested between. |
protected abstract void |
renderHeader(FacesContext context,
UIComponent table,
ResponseWriter writer)
Called to render the opening/closing
thead elements
and any content nested between. |
protected abstract void |
renderRow(FacesContext context,
UIComponent table,
UIComponent row,
ResponseWriter writer)
Call to render the content that should be included between opening
and closing
tr elements. |
protected void |
renderRowEnd(FacesContext context,
UIComponent table,
ResponseWriter writer)
Renders the closing
rt element. |
protected void |
renderRowStart(FacesContext context,
UIComponent table,
ResponseWriter writer)
Renders the starting
tr element applying any values
from the rowClasses attribute. |
protected void |
renderTableBodyEnd(FacesContext context,
UIComponent table,
ResponseWriter writer)
Renders the closing
tbody element. |
protected void |
renderTableBodyStart(FacesContext context,
UIComponent table,
ResponseWriter writer)
Renders the starting
tbody element. |
protected void |
renderTableEnd(FacesContext context,
UIComponent table,
ResponseWriter writer)
Renders the closing
table element. |
protected void |
renderTableStart(FacesContext context,
UIComponent table,
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, writeIdAttributeIfNecessary
encodeBegin, encodeChildren, getConvertedValue
protected abstract void renderHeader(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, UIComponent row, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, UIComponent table, 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(FacesContext context, 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(FacesContext context, UIComponent table)
context
- the FacesContext
for the current requesttable
- the table from which the TableMetaInfo will be removedprotected String createKey(UIComponent table)
UIComponent
with
which the TableMetaInfo can be looked up.table
- the table that's being renderedComments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.