|
|||||||||
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.renderkit.html.HtmlRenderer
org.apache.myfaces.renderkit.html.HtmlTableRendererBase
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer
public class HtmlTreeRenderer
Field Summary |
---|
Fields inherited from class org.apache.myfaces.renderkit.html.HtmlTableRendererBase |
---|
FOOTER_FACET_NAME, HEADER_FACET_NAME |
Constructor Summary | |
---|---|
HtmlTreeRenderer()
|
Method Summary | |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
|
void |
encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
protected java.lang.String |
getLayoutImage(HtmlTree tree,
int state)
|
boolean |
getRendersChildren()
|
protected void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlTree tree,
java.util.List children,
int maxLevel,
IconProvider iconProvider,
int rowClassIndex,
javax.faces.component.UIComponent component)
Renders the children given the rowClassIndex. |
protected void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlTree tree,
java.util.List children,
int maxLevel,
IconProvider iconProvider,
javax.faces.component.UIComponent component)
Renders the children. |
protected void |
renderColumnFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String footerStyleClass,
int maxLevel)
|
protected void |
renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
java.lang.String headerStyleClass,
int maxLevel)
|
protected void |
renderFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
boolean header,
int maxLevel)
Overrides super renderFacet to render the HtmlTree facets. |
protected void |
renderTreeColumnChild(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
HtmlTree tree,
HtmlTreeNode child,
int maxLevel,
IconProvider iconProvider)
Render the column where the tree is displayed. |
Methods inherited from class org.apache.myfaces.renderkit.html.HtmlTableRendererBase |
---|
afterRow, afterTable, beforeRow, beforeTable, decode, determineChildColSpan, encodeColumnChild, encodeInnerHtml, getFooterClass, getHeaderClass, hasFacet, renderColumnBody, renderColumnChildHeaderOrFooterRow, renderColumnFooterCell, renderColumnFooterCell, renderColumnFooterRow, renderColumnHeaderCell, renderColumnHeaderCell, renderColumnHeaderRow, renderFacet, renderRowEnd, renderRowStart, renderRowStyle, renderTableFooterRow, renderTableHeaderRow |
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 |
Constructor Detail |
---|
public HtmlTreeRenderer()
Method Detail |
---|
public boolean getRendersChildren()
getRendersChildren
in class HtmlTableRendererBase
Renderer.getRendersChildren()
public void encodeBegin(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent) throws java.io.IOException
encodeBegin
in class HtmlTableRendererBase
java.io.IOException
Renderer.encodeBegin(FacesContext, UIComponent)
public void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws java.io.IOException
encodeChildren
in class HtmlTableRendererBase
java.io.IOException
Renderer.encodeChildren(FacesContext, UIComponent)
public void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws java.io.IOException
encodeEnd
in class HtmlTableRendererBase
java.io.IOException
Renderer.encodeEnd(FacesContext, UIComponent)
protected void renderFacet(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, boolean header, int maxLevel) throws java.io.IOException
Overrides super renderFacet to render the HtmlTree
facets.
facesContext
- The facesContextwriter
- The writer.component
- The component.header
- Whether there is a header.maxLevel
- The max level for the rendered tree.
java.io.IOException
- Throws IOException.protected void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String headerStyleClass, int maxLevel) throws java.io.IOException
java.io.IOException
protected void renderColumnFooterRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, java.lang.String footerStyleClass, int maxLevel) throws java.io.IOException
java.io.IOException
protected void renderChildren(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, HtmlTree tree, java.util.List children, int maxLevel, IconProvider iconProvider, javax.faces.component.UIComponent component) throws java.io.IOException
Renders the children.
facesContext
- The facesContext.writer
- The writer.tree
- The tree component.children
- The children to render.maxLevel
- The maximum level.iconProvider
- The icon provider.
java.io.IOException
- Throws an IOException.protected void renderChildren(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, HtmlTree tree, java.util.List children, int maxLevel, IconProvider iconProvider, int rowClassIndex, javax.faces.component.UIComponent component) throws java.io.IOException
Renders the children given the rowClassIndex.
facesContext
- The facesContext.writer
- The writer.tree
- The tree component.children
- The children to render.maxLevel
- The maximum level.iconProvider
- The icon provider.rowClassIndex
- The row class index.
java.io.IOException
- Throws an IOException.protected void renderTreeColumnChild(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, HtmlTree tree, HtmlTreeNode child, int maxLevel, IconProvider iconProvider) throws java.io.IOException
Render the column where the tree is displayed.
facesContext
- The facesContext.writer
- The writer.component
- The component that will contain the tree. Null for
default tree or HtmlTreeColumn
for table rendering.tree
- The tree,child
- The tree node child.maxLevel
- The max number of levels.iconProvider
- The iconProvider.
java.io.IOException
- Throws IOException.protected java.lang.String getLayoutImage(HtmlTree tree, int state)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |