|
||||||||||
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.custom.tree.renderkit.html.HtmlTreeRenderer
@JSFRenderer(renderKitId="HTML_BASIC", family="org.apache.myfaces.HtmlTree", type="org.apache.myfaces.HtmlTree") 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)
|
protected String |
getDefaultLayoutResourceName(javax.faces.context.FacesContext context,
HtmlTree tree,
int state)
|
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.HtmlRenderer |
---|
getActionUrl, getChildCount, getChildren, getClientId, isCommonEventsOptimizationEnabled, isCommonPropertiesOptimizationEnabled, 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 IOException
HtmlTableRendererBase
encodeBegin
in class HtmlTableRendererBase
IOException
Renderer.encodeBegin(FacesContext, UIComponent)
public void encodeChildren(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws IOException
HtmlTableRendererBase
encodeChildren
in class HtmlTableRendererBase
IOException
Renderer.encodeChildren(FacesContext, UIComponent)
public void encodeEnd(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component) throws IOException
encodeEnd
in class HtmlTableRendererBase
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 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.
IOException
- Throws IOException.protected void renderColumnHeaderRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, String headerStyleClass, int maxLevel) throws IOException
IOException
protected void renderColumnFooterRow(javax.faces.context.FacesContext facesContext, javax.faces.context.ResponseWriter writer, javax.faces.component.UIComponent component, String footerStyleClass, int maxLevel) throws IOException
IOException
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.
facesContext
- The facesContext.writer
- The writer.tree
- The tree component.children
- The children to render.maxLevel
- The maximum level.iconProvider
- The icon provider.
IOException
- Throws an IOException.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.
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.
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 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.
IOException
- Throws IOException.protected String getLayoutImage(javax.faces.context.FacesContext context, HtmlTree tree, int state)
protected String getDefaultLayoutResourceName(javax.faces.context.FacesContext context, HtmlTree tree, int state)
protected String getImageUrl(javax.faces.context.FacesContext context, String userValue, String resourceValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |