java.lang.Object
jakarta.faces.render.Renderer
com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
com.sun.faces.renderkit.html_basic.BaseTableRenderer
- Direct Known Subclasses:
GridRenderer,TableRenderer
Base class for concrete Grid and Table renderers.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param -
Field Summary
Fields inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
EMPTY_PARAMS, loggerFields inherited from class jakarta.faces.render.Renderer
PASSTHROUGH_RENDERER_LOCALNAME_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidclearMetaInfo(FacesContext context, UIComponent table) Removes the cached TableMetaInfo from the specified component.protected StringcreateKey(UIComponent table) Creates a unique key based on the providedUIComponentwith which the TableMetaInfo can be looked up.protected BaseTableRenderer.TableMetaInfogetMetaInfo(FacesContext context, UIComponent table) Returns aTableMetaInfoobject containing details such as row and column classes, columns, and a mechanism for scrolling through the row/column classes.protected voidrenderCaption(FacesContext context, UIComponent table, ResponseWriter writer) Renders the caption of the table applying the values ofcaptionClassas the class andcaptionStyleas the style if either are present.protected abstract voidrenderFooter(FacesContext context, UIComponent table, ResponseWriter writer) Called to render the opening/closingtfootelements and any content nested between.protected abstract voidrenderHeader(FacesContext context, UIComponent table, ResponseWriter writer) Called to render the opening/closingtheadelements and any content nested between.protected abstract voidrenderRow(FacesContext context, UIComponent table, UIComponent row, ResponseWriter writer) Call to render the content that should be included between opening and closingtrelements.protected voidrenderRowEnd(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingrtelement.protected voidrenderRowStart(FacesContext context, UIComponent table, ResponseWriter writer) Renders the startingtrelement applying any values from therowClassesattribute.protected voidrenderTableBodyEnd(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingtbodyelement.protected voidrenderTableBodyStart(FacesContext context, UIComponent table, ResponseWriter writer) Renders the startingtbodyelement.protected voidrenderTableEnd(FacesContext context, UIComponent table, ResponseWriter writer) Renders the closingtableelement.protected voidrenderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) Renders the start of a table and applies the value ofstyleClassif available and renders any pass through attributes that may be specified.Methods inherited from class com.sun.faces.renderkit.html_basic.HtmlBasicRenderer
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, writeIdAttributeIfNecessaryMethods inherited from class jakarta.faces.render.Renderer
encodeBegin, encodeChildren, getConvertedValue
-
Constructor Details
-
BaseTableRenderer
public BaseTableRenderer()
-
-
Method Details
-
renderHeader
protected abstract void renderHeader(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Called to render the opening/closingtheadelements and any content nested between.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderRow
protected abstract void renderRow(FacesContext context, UIComponent table, UIComponent row, ResponseWriter writer) throws IOException Call to render the content that should be included between opening and closingtrelements.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedrow- the current row (if any - an implmenetation may not need this)writer- the current writer- Throws:
IOException- if content cannot be written
-
renderTableStart
protected void renderTableStart(FacesContext context, UIComponent table, ResponseWriter writer, Attribute[] attributes) throws IOException Renders the start of a table and applies the value ofstyleClassif available and renders any pass through attributes that may be specified.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writerattributes- pass-through attributes that the component supports- Throws:
IOException- if content cannot be written
-
renderTableEnd
protected void renderTableEnd(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the closingtableelement.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderCaption
protected void renderCaption(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the caption of the table applying the values ofcaptionClassas the class andcaptionStyleas the style if either are present.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderTableBodyStart
protected void renderTableBodyStart(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the startingtbodyelement.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderTableBodyEnd
protected void renderTableBodyEnd(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the closingtbodyelement.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderRowStart
protected void renderRowStart(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the startingtrelement applying any values from therowClassesattribute.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
renderRowEnd
protected void renderRowEnd(FacesContext context, UIComponent table, ResponseWriter writer) throws IOException Renders the closingrtelement.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being renderedwriter- the current writer- Throws:
IOException- if content cannot be written
-
getMetaInfo
Returns aTableMetaInfoobject containing details such as row and column classes, columns, and a mechanism for scrolling through the row/column classes.- Parameters:
context- theFacesContextfor the current requesttable- the table that's being rendered- Returns:
- the
TableMetaInfofor provided table
-
clearMetaInfo
Removes the cached TableMetaInfo from the specified component.- Parameters:
context- theFacesContextfor the current requesttable- the table from which the TableMetaInfo will be removed
-
createKey
Creates a unique key based on the providedUIComponentwith which the TableMetaInfo can be looked up.- Parameters:
table- the table that's being rendered- Returns:
- a unique key to store the metadata in the request and still have it associated with a specific component.
-