public class HtmlTableRendererBase extends HtmlRenderer
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
FOOTER_FACET_NAME
Footer facet name.
|
protected static java.lang.String |
HEADER_FACET_NAME
Header facet name.
|
| Constructor and Description |
|---|
HtmlTableRendererBase() |
| Modifier and Type | Method and Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
protected void |
afterRow(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
Convenient method for derived table renderers.
|
||||||||||||||||||||||||||||||||||||
protected void |
afterTable(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
Convenient method for derived table renderers.
|
||||||||||||||||||||||||||||||||||||
protected void |
beforeRow(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
Convenient method for derived table renderers.
|
||||||||||||||||||||||||||||||||||||
protected void |
beforeTable(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
Convenient method for derived table renderers.
|
||||||||||||||||||||||||||||||||||||
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
||||||||||||||||||||||||||||||||||||
protected int |
determineChildColSpan(javax.faces.component.UIComponent uiComponent) |
||||||||||||||||||||||||||||||||||||
void |
encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent) |
||||||||||||||||||||||||||||||||||||
void |
encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component) |
||||||||||||||||||||||||||||||||||||
protected void |
encodeColumnChild(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
javax.faces.component.UIComponent component,
java.util.Iterator columnStyleIterator) |
||||||||||||||||||||||||||||||||||||
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent) |
||||||||||||||||||||||||||||||||||||
void |
encodeInnerHtml(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Renders everything inside the tag. currently used for the autoUpdateDataTable
protected static java.lang.StringgetFooterClass(javax.faces.component.UIComponent component)
Gets the footerClass attribute of the given
UIComponent.protected static java.lang.StringgetHeaderClass(javax.faces.component.UIComponent component)
Gets the headerClass attribute of the given
UIComponent.booleangetRendersChildren() protected booleanhasFacet(boolean header,
javax.faces.component.UIComponent uiComponent) protected voidrenderColumnBody(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
javax.faces.component.UIComponent component,
java.util.Iterator columnStyleIterator)
Renders the body of a given
UIColumn (everything but the header and footer facets).protected voidrenderColumnChildHeaderOrFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
java.lang.String styleClass,
boolean header) protected voidrenderColumnFooterCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn uiColumn,
java.lang.String footerStyleClass,
int colspan)
Renders the footer facet for the given
UIColumn.protected voidrenderColumnFooterCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
javax.faces.component.UIComponent facet,
java.lang.String footerStyleClass,
int colspan)
Renders the footer facet for the given
UIColumn.protected voidrenderColumnFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String footerStyleClass)
Renders the footer row for the columns, which is a separate row from the footer row for the
UIData footer facet.protected voidrenderColumnHeaderCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn uiColumn,
java.lang.String headerStyleClass,
int colspan)
Renders the header facet for the given
UIColumn.protected voidrenderColumnHeaderCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
javax.faces.component.UIComponent facet,
java.lang.String headerStyleClass,
int colspan)
Renders the header facet for the given
UIColumn.protected voidrenderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String headerStyleClass)
Renders the header row for the columns, which is a separate row from the header row for the
UIData header facet.protected voidrenderFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
boolean header)
Renders either the header or the footer facets.
protected voidrenderRowEnd(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData)
Renders the end of a row of body content.
protected voidrenderRowStart(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleIterator)
Renders the start of a new row of body content.
protected voidrenderRowStyle(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleIterator) protected voidrenderTableFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent footerFacet,
java.lang.String footerStyleClass,
int colspan)
Renders the footer row of the table being rendered.
protected voidrenderTableHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent headerFacet,
java.lang.String headerStyleClass,
int colspan)
Renders the header row of the table being rendered.
|
protected static final java.lang.String HEADER_FACET_NAME
protected static final java.lang.String FOOTER_FACET_NAME
public boolean getRendersChildren()
getRendersChildren in class javax.faces.render.RendererRenderer.getRendersChildren()public void encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws java.io.IOException
encodeBegin in class javax.faces.render.Rendererjava.io.IOExceptionRenderer.encodeBegin(FacesContext, UIComponent)public void encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeChildren in class HtmlRendererjava.io.IOExceptionRenderer.encodeChildren(FacesContext, UIComponent)public void encodeInnerHtml(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOExceptionprotected void encodeColumnChild(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
javax.faces.component.UIComponent component,
java.util.Iterator columnStyleIterator)
throws java.io.IOException
java.io.IOExceptionprotected void renderColumnBody(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
javax.faces.component.UIComponent component,
java.util.Iterator columnStyleIterator)
throws java.io.IOException
UIColumn (everything but the header and footer facets).facesContext - the FacesContext.writer - the ResponseWriter.uiData - the UIData being rendered.component - the UIComponent to render.columnStyleIterator - the styleClass of the UIColumn or null if
there is none.java.io.IOException - if an exception occurs.protected void renderRowStart(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleIterator)
throws java.io.IOException
facesContext - the FacesContext.writer - the ResponseWriter.uiData - the UIData being rendered.rowStyleIterator - te styleClass of the row or null if there is none.java.io.IOException - if an exceptoin occurs.protected void renderRowStyle(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleIterator)
throws java.io.IOException
java.io.IOExceptionprotected void renderRowEnd(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData)
throws java.io.IOException
facesContext - the FacesContext.writer - the ResponseWriter.uiData - the UIData being rendered.java.io.IOException - if an exceptoin occurs.protected void beforeTable(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
throws java.io.IOException
facesContext - the FacesContext.uiData - the UIData being rendered.java.io.IOExceptionprotected void beforeRow(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
throws java.io.IOException
facesContext - the FacesContext.uiData - the UIData being rendered.java.io.IOExceptionprotected void afterRow(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
throws java.io.IOException
facesContext - the FacesContext.uiData - the UIData being rendered.java.io.IOExceptionprotected void afterTable(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
throws java.io.IOException
facesContext - the FacesContext.uiData - the UIData being rendered.java.io.IOExceptionpublic void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws java.io.IOException
encodeEnd in class javax.faces.render.Rendererjava.io.IOExceptionRenderer.encodeEnd(FacesContext, UIComponent)protected void renderFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
boolean header)
throws java.io.IOException
facesContext - the FacesContext.writer - the ResponseWriter.component - the parent UIComponent containing the facets.header - whether this is the header facet (if not, then the footer facet).java.io.IOException - if an exception occurs.protected boolean hasFacet(boolean header,
javax.faces.component.UIComponent uiComponent)
header - uiComponent - protected int determineChildColSpan(javax.faces.component.UIComponent uiComponent)
protected void renderTableHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent headerFacet,
java.lang.String headerStyleClass,
int colspan)
throws java.io.IOException
facesContext - the FacesContext.writer - the ResponseWriter.component - the UIComponent for whom a table is being rendered.headerFacet - the facet for the header.headerStyleClass - the styleClass of the header.colspan - the number of columns the header should span. Typically, this is
the number of columns in the table.java.io.IOException - if an exception occurs.protected void renderTableFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
javax.faces.component.UIComponent footerFacet,
java.lang.String footerStyleClass,
int colspan)
throws java.io.IOException
facesContext - the FacesContext.writer - the ResponseWriter.component - the UIComponent for whom a table is being rendered.footerFacet - the facet for the footer.footerStyleClass - the styleClass of the footer.colspan - the number of columns the header should span. Typically, this is
the number of columns in the table.java.io.IOException - if an exception occurs.protected void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String headerStyleClass)
throws java.io.IOException
UIData header facet.facesContext - the FacesContext.writer - the ResponseWriter.component - the UIComponent for whom a table is being rendered.headerStyleClass - the styleClass of the headerjava.io.IOException - if an exception occurs.protected void renderColumnFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String footerStyleClass)
throws java.io.IOException
UIData footer facet.facesContext - the FacesContext.writer - the ResponseWriter.component - the UIComponent for whom a table is being rendered.footerStyleClass - the styleClass of the footerStyleClassjava.io.IOException - if an exception occurs.protected void renderColumnChildHeaderOrFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
java.lang.String styleClass,
boolean header)
throws java.io.IOException
java.io.IOExceptionprotected void renderColumnHeaderCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn uiColumn,
java.lang.String headerStyleClass,
int colspan)
throws java.io.IOException
UIColumn.facesContext - the FacesContext.writer - the ResponseWriter.uiColumn - the UIColumn.headerStyleClass - the styleClass of the header facet.colspan - the colspan for the tableData element in which the header facet
will be wrapped.java.io.IOExceptionprotected void renderColumnHeaderCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
javax.faces.component.UIComponent facet,
java.lang.String headerStyleClass,
int colspan)
throws java.io.IOException
UIColumn.facesContext - the FacesContext.writer - the ResponseWriter.uiComponent - the UIComponent to render the facet for.facet - the UIComponent to render as facet.headerStyleClass - the styleClass of the header facet.colspan - the colspan for the tableData element in which the header facet
will be wrapped.java.io.IOExceptionprotected void renderColumnFooterCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIColumn uiColumn,
java.lang.String footerStyleClass,
int colspan)
throws java.io.IOException
UIColumn.facesContext - the FacesContext.writer - the ResponseWriter.uiColumn - the UIComponent.footerStyleClass - the styleClass of the footer facet.colspan - the colspan for the tableData element in which the footer facet
will be wrapped.java.io.IOExceptionprotected void renderColumnFooterCell(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
javax.faces.component.UIComponent facet,
java.lang.String footerStyleClass,
int colspan)
throws java.io.IOException
UIColumn.facesContext - the FacesContext.writer - the ResponseWriter.uiComponent - the UIComponent to render the facet for.facet - the UIComponent to render as facet.footerStyleClass - the styleClass of the footer facet.colspan - the colspan for the tableData element in which the footer facet
will be wrapped.java.io.IOExceptionprotected static java.lang.String getHeaderClass(javax.faces.component.UIComponent component)
UIComponent.component - the UIComponent.UIComponent.protected static java.lang.String getFooterClass(javax.faces.component.UIComponent component)
UIComponent.component - the UIComponent.UIComponent.public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
decode in class javax.faces.render.Renderer