org.apache.myfaces.custom.tree.renderkit.html
Class HtmlTreeRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
org.apache.myfaces.custom.tree.renderkit.html.HtmlTreeRenderer
public class HtmlTreeRenderer
- extends org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
- Version:
- $Revision: 659874 $ $Date: 2008-05-24 15:59:15 -0500 (Sat, 24 May 2008) $
- Author:
- Oliver Rossmueller
| Nested classes/interfaces inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase.Styles |
| Fields inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
FOOTER_FACET_NAME, HEADER_FACET_NAME |
|
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)
|
String |
getDefaultImagePath(javax.faces.context.FacesContext context,
String relativePathInResourceFolder)
|
protected String |
getImageUrl(javax.faces.context.FacesContext context,
String userValue,
String resourceValue)
|
protected String |
getLayoutImage(javax.faces.context.FacesContext context,
HtmlTree tree,
int state)
|
boolean |
getRendersChildren()
|
protected void |
renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlTree tree,
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,
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,
String footerStyleClass,
int maxLevel)
|
protected void |
renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
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.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
afterBody, afterColumn, afterColumnHeaderOrFooter, afterRow, afterTable, beforeBody, beforeColumn, beforeColumnHeaderOrFooter, beforeRow, beforeTable, decode, determineChildColSpan, determineHeaderCellTag, determineHeaderFooterTag, encodeColumnChild, encodeInnerHtml, endTable, getFooterClass, getHeaderClass, getNewspaperColumns, getNewspaperTableSpacer, getStyles, hasFacet, hasNewspaperTableSpacer, inBodyStart, isNewspaperHorizontalOrientation, renderColumnBody, renderColumnChildHeaderOrFooterRow, renderColumnFooterCell, renderColumnFooterCell, renderColumnFooterRow, renderColumnHeaderCell, renderColumnHeaderCell, renderColumnHeaderRow, renderFacet, renderRowEnd, renderRowStart, renderRowStyle, renderSpacerCell, renderTableFooterRow, renderTableHeaderOrFooterRow, renderTableHeaderRow, startTable |
| Methods inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlRenderer |
getActionUrl, getChildCount, getChildren, getClientId, renderId, shouldRenderId, toUri |
| 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 |
HtmlTreeRenderer
public HtmlTreeRenderer()
getRendersChildren
public boolean getRendersChildren()
- Overrides:
getRendersChildren in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws IOException
- Overrides:
encodeBegin in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
- Throws:
IOException
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeChildren in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
- Throws:
IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
throws IOException
- Overrides:
encodeEnd in class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase
- Throws:
IOException
renderFacet
protected void renderFacet(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
boolean header,
int maxLevel)
throws IOException
Overrides super renderFacet to render the HtmlTree facets.
- Parameters:
facesContext - The facesContextwriter - The writer.component - The component.header - Whether there is a header.maxLevel - The max level for the rendered tree.
- Throws:
IOException - Throws IOException.
renderColumnHeaderRow
protected void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
String headerStyleClass,
int maxLevel)
throws IOException
- Throws:
IOException
renderColumnFooterRow
protected void renderColumnFooterRow(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
javax.faces.component.UIComponent component,
String footerStyleClass,
int maxLevel)
throws IOException
- Throws:
IOException
renderChildren
protected void renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlTree tree,
List children,
int maxLevel,
IconProvider iconProvider,
javax.faces.component.UIComponent component)
throws IOException
Renders the children.
- Parameters:
facesContext - The facesContext.writer - The writer.tree - The tree component.children - The children to render.maxLevel - The maximum level.iconProvider - The icon provider.
- Throws:
IOException - Throws an IOException.
renderChildren
protected void renderChildren(javax.faces.context.FacesContext facesContext,
javax.faces.context.ResponseWriter writer,
HtmlTree tree,
List children,
int maxLevel,
IconProvider iconProvider,
int rowClassIndex,
javax.faces.component.UIComponent component)
throws IOException
Renders the children given the rowClassIndex.
- Parameters:
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.
- Throws:
IOException - Throws an IOException.
getDefaultImagePath
public String getDefaultImagePath(javax.faces.context.FacesContext context,
String relativePathInResourceFolder)
renderTreeColumnChild
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 IOException
Render the column where the tree is displayed.
- Parameters:
facesContext - The facesContext.writer - The writer.component - The component that will contain the tree. Null for
default tree or HtmlTreeColumnfor table rendering.tree - The tree,child - The tree node child.maxLevel - The max number of levels.iconProvider - The iconProvider.
- Throws:
IOException - Throws IOException.
getLayoutImage
protected String getLayoutImage(javax.faces.context.FacesContext context,
HtmlTree tree,
int state)
getImageUrl
protected String getImageUrl(javax.faces.context.FacesContext context,
String userValue,
String resourceValue)
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.