|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.render.Renderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
org.apache.myfaces.renderkit.html.ext.HtmlTableRenderer
public class HtmlTableRenderer
Renderer for the Tomahawk extended HtmlDataTable component.
Field Summary | |
---|---|
static java.lang.String |
DETAIL_STAMP_FACET_NAME
DetailStamp facet name. |
Fields inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
---|
FOOTER_FACET_NAME, HEADER_FACET_NAME |
Constructor Summary | |
---|---|
HtmlTableRenderer()
|
Method Summary | |
---|---|
protected void |
afterRow(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIData uiData)
|
protected int |
determineChildColSpan(javax.faces.component.UIComponent uiComponent)
Return the number of columns spanned by the specified component. |
protected boolean |
determineRenderFacet(javax.faces.component.UIComponent component,
boolean header)
determine if the header or footer should be rendered. |
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)
Render the specified column object using the current row data. |
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
|
protected boolean |
hasFacet(boolean header,
javax.faces.component.UIComponent uiComponent)
Return true if the specified component has a facet that needs to be rendered in a THEAD or TFOOT section. |
protected 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)
|
protected void |
renderColumnChildHeaderOrFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
java.lang.String styleClass,
boolean header)
Render the header or footer of the specified column object. |
protected 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)
|
protected void |
renderColumnFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String footerStyleClass)
Renders the column footer. |
protected 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)
|
protected void |
renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String headerStyleClass)
Renders the column header. |
protected void |
renderHtmlColumnAttributes(javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent uiComponent,
java.lang.String prefix)
|
protected void |
renderRowAttribute(javax.faces.context.ResponseWriter writer,
java.lang.String htmlAttribute,
java.lang.Object value)
|
protected void |
renderRowStart(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleClassIterator)
|
protected void |
renderRowStyle(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIData uiData,
java.util.Iterator rowStyleIterator)
|
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
---|
afterBody, afterTable, beforeBody, beforeRow, beforeTable, decode, encodeInnerHtml, getFooterClass, getHeaderClass, getRendersChildren, renderColumnFooterCell, renderColumnHeaderCell, renderFacet, renderRowEnd, renderTableFooterRow, renderTableHeaderRow |
Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer |
---|
getActionUrl, getChildCount, getChildren |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DETAIL_STAMP_FACET_NAME
Constructor Detail |
---|
public HtmlTableRenderer()
Method Detail |
---|
protected void afterRow(javax.faces.context.FacesContext facesContext, javax.faces.component.UIData uiData) throws java.io.IOException
afterRow
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
public void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent) throws java.io.IOException
encodeBegin
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.encodeBegin(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
public void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.encodeChildren(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
public void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent) throws java.io.IOException
encodeEnd
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.encodeEnd(javax.faces.context.FacesContext, javax.faces.component.UIComponent)
protected void renderRowStart(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIData uiData, java.util.Iterator rowStyleClassIterator) throws java.io.IOException
renderRowStart
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
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
renderRowStyle
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.renderRowStyle(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIData, java.util.Iterator)
protected void renderRowAttribute(javax.faces.context.ResponseWriter writer, java.lang.String htmlAttribute, java.lang.Object value) throws java.io.IOException
java.io.IOException
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) throws java.io.IOException
When the component is a UIColumn object, the inherited method is invoked to render a single table cell.
In addition to the inherited functionality, support is implemented here for UIColumns children. When a UIColumns child is encountered:
For each dynamic column in that UIColumns child: * Select the column (which sets variable named by the var attribute to refer to the current column object) * Call this.renderColumnBody passing the UIColumns object.The renderColumnBody method eventually:
encodeColumnChild
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.encodeColumnChild(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIData, javax.faces.component.UIComponent, java.util.Iterator)
protected 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
renderColumnBody
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.renderColumnBody(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIData, javax.faces.component.UIComponent, java.util.Iterator)
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
When the component is a UIColumn object, the inherited method is invoked to render a single header cell.
In addition to the inherited functionality, support is implemented here for UIColumns children. When a UIColumns child is encountered:
For each dynamic column in that UIColumns child: * Select the column (which sets variable named by the var attribute to refer to the current column object) * Call this.renderColumnHeaderCell or this.renderColumnFooterCell passing the header or footer facet of the UIColumns object.If the facet of the UIColumns accesses the variable named by the var attribute on the UIColumns object, then it ends up rendering content that is extracted from the current column object.
renderColumnChildHeaderOrFooterRow
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.renderColumnChildHeaderOrFooterRow(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIComponent, java.lang.String, boolean)
protected 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
renderColumnHeaderCell
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.renderColumnHeaderCell(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIComponent, javax.faces.component.UIComponent, java.lang.String, int)
protected 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
renderColumnFooterCell
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
HtmlTableRendererBase.renderColumnFooterCell(javax.faces.context.FacesContext, javax.faces.context.ResponseWriter, javax.faces.component.UIComponent, javax.faces.component.UIComponent, java.lang.String, int)
protected void renderHtmlColumnAttributes(javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent uiComponent, java.lang.String prefix) throws java.io.IOException
java.io.IOException
protected int determineChildColSpan(javax.faces.component.UIComponent uiComponent)
For normal components, use the inherited implementation. For UIColumns children, return the number of dynamic columns rendered by that child.
determineChildColSpan
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
#determineChildColSpan(javax.faces.component.UIComponent)
protected boolean hasFacet(boolean header, javax.faces.component.UIComponent uiComponent)
hasFacet
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
HtmlTableRendererBase.hasFacet(boolean, javax.faces.component.UIComponent)
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
renderColumnFooterRow
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
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
renderColumnHeaderRow
in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
java.io.IOException
protected boolean determineRenderFacet(javax.faces.component.UIComponent component, boolean header)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |