|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
---|
HtmlTableRendererBase.Styles |
Field Summary |
---|
Fields inherited from class org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlTableRendererBase |
---|
CAPTION_FACET_NAME, FOOTER_FACET_NAME, HEADER_FACET_NAME |
Constructor Summary | |
---|---|
HtmlTreeRenderer()
|
Method Summary | |
---|---|
void |
encodeBegin(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
Render the necessary bits that come before any actual rows in the table. |
void |
encodeChildren(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
Render the TBODY section of the html table. |
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component)
|
java.lang.String |
getDefaultImagePath(javax.faces.context.FacesContext context,
java.lang.String relativePathInResourceFolder)
|
protected java.lang.String |
getImageUrl(javax.faces.context.FacesContext context,
java.lang.String userValue,
java.lang.String resourceValue)
|
protected java.lang.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,
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.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 |
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
HtmlTableRendererBase
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
HtmlTableRendererBase
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.public java.lang.String getDefaultImagePath(javax.faces.context.FacesContext context, java.lang.String relativePathInResourceFolder)
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(javax.faces.context.FacesContext context, HtmlTree tree, int state)
protected java.lang.String getImageUrl(javax.faces.context.FacesContext context, java.lang.String userValue, java.lang.String resourceValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |