com.sun.faces.renderkit.html_basic
public class TableRenderer extends BaseTableRenderer
Render a UIData
component as a two-dimensional table.
BaseTableRenderer.TableMetaInfo
HtmlBasicRenderer.OptionComponentInfo, HtmlBasicRenderer.Param
Modifier and Type | Field and Description |
---|---|
private static Attribute[] |
ATTRIBUTES |
EMPTY_PARAMS, logger
Constructor and Description |
---|
TableRenderer() |
Modifier and Type | Method and Description |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
void |
encodeEnd(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
private java.util.List<java.lang.Integer> |
getBodyRows(java.util.Map<java.lang.String,java.lang.Object> appMap,
javax.faces.component.UIData data) |
boolean |
getRendersChildren() |
protected void |
renderColumnGroups(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table) |
private void |
renderEmptyTableBody(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component) |
private void |
renderEmptyTableRow(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component) |
protected 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 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 void |
renderRow(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent table,
javax.faces.component.UIComponent child,
javax.faces.context.ResponseWriter writer)
Call to render the content that should be included between opening
and closing
tr elements. |
clearMetaInfo, createKey, getMetaInfo, renderCaption, renderRowEnd, renderRowStart, renderTableBodyEnd, renderTableBodyStart, renderTableEnd, renderTableStart
augmentIdReference, convertClientId, decode, decodeBehaviors, encodeRecursive, getBehaviorParameters, getChildren, getCurrentValue, getEndTextToRender, getFacet, getForComponent, getFormattedValue, getFormattedValue, getMessageIter, getParamList, getPassThruBehaviors, getValue, isBehaviorSource, rendererParamsNotNull, setSubmittedValue, shouldDecode, shouldEncode, shouldEncodeChildren, shouldWriteIdAttribute, writeIdAttributeIfNecessary
private static final Attribute[] ATTRIBUTES
public void encodeBegin(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeBegin
in class javax.faces.render.Renderer
java.io.IOException
public void encodeChildren(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class javax.faces.render.Renderer
java.io.IOException
public void encodeEnd(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class HtmlBasicRenderer
java.io.IOException
public boolean getRendersChildren()
getRendersChildren
in class HtmlBasicRenderer
private java.util.List<java.lang.Integer> getBodyRows(java.util.Map<java.lang.String,java.lang.Object> appMap, javax.faces.component.UIData data)
protected void renderColumnGroups(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table) throws java.io.IOException
java.io.IOException
protected void renderFooter(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table, javax.faces.context.ResponseWriter writer) throws java.io.IOException
BaseTableRenderer
tfoot
elements
and any content nested between.renderFooter
in class BaseTableRenderer
context
- the FacesContext
for the current requesttable
- the table that's being renderedwriter
- the current writerjava.io.IOException
- if content cannot be writtenprotected void renderHeader(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table, javax.faces.context.ResponseWriter writer) throws java.io.IOException
BaseTableRenderer
thead
elements
and any content nested between.renderHeader
in class BaseTableRenderer
context
- the FacesContext
for the current requesttable
- the table that's being renderedwriter
- the current writerjava.io.IOException
- if content cannot be writtenprotected void renderRow(javax.faces.context.FacesContext context, javax.faces.component.UIComponent table, javax.faces.component.UIComponent child, javax.faces.context.ResponseWriter writer) throws java.io.IOException
BaseTableRenderer
tr
elements.renderRow
in class BaseTableRenderer
context
- the FacesContext
for the current requesttable
- the table that's being renderedchild
- the current row (if any - an implmenetation may not need this)writer
- the current writerjava.io.IOException
- if content cannot be writtenprivate void renderEmptyTableBody(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
private void renderEmptyTableRow(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
Copyright © 2002-2010 Oracle America, Inc. All Rights Reserved.