org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag
Class TreeRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.tobago.renderkit.RendererBase
          extended by org.apache.myfaces.tobago.renderkit.LayoutableRendererBase
              extended by org.apache.myfaces.tobago.renderkit.html.scarborough.standard.tag.TreeRenderer
All Implemented Interfaces:
LayoutableRenderer, LayoutInformationProvider

public class TreeRenderer
extends LayoutableRendererBase


Constructor Summary
TreeRenderer()
           
 
Method Summary
static String createJavascriptVariable(String clientId)
           
 void decode(FacesContext facesContext, UIComponent component)
           
 void encodeChildren(FacesContext context, UIComponent component)
           
 void encodeEnd(FacesContext facesContext, UIComponent component)
           
protected  String getNodesAsJavascript(FacesContext facesContext, UIComponent root)
           
static boolean isSelectable(AbstractUITree tree)
           
protected  String nodeStateId(FacesContext facesContext, UIComponent node)
           
 void prepareRender(FacesContext facesContext, UIComponent component)
           
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.LayoutableRendererBase
getComponentExtraHeight, getComponentExtraWidth, getFixedHeight, getFixedSpace, getFixedWidth, getHeaderHeight, getMinimumHeight, getMinimumSize, getMinimumWidth, getPaddingHeight, getPaddingWidth, layoutBegin, layoutEnd
 
Methods inherited from class org.apache.myfaces.tobago.renderkit.RendererBase
getConfiguredValue, getConvertedValue, getConverter, getCurrentValue, getCurrentValueAsObject, getFormattedValue, getPrepareRendersChildren, getRendererName, getValue, onComponentCreated, prepareRendersChildren
 
Methods inherited from class javax.faces.render.Renderer
convertClientId, encodeBegin, getRendersChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.tobago.renderkit.LayoutableRenderer
convertClientId, encodeBegin, getConvertedValue, getRendererName, getRendersChildren
 

Constructor Detail

TreeRenderer

public TreeRenderer()
Method Detail

prepareRender

public void prepareRender(FacesContext facesContext,
                          UIComponent component)
                   throws IOException
Specified by:
prepareRender in interface LayoutableRenderer
Overrides:
prepareRender in class LayoutableRendererBase
Throws:
IOException

decode

public void decode(FacesContext facesContext,
                   UIComponent component)
Specified by:
decode in interface LayoutableRenderer
Overrides:
decode in class RendererBase

isSelectable

public static boolean isSelectable(AbstractUITree tree)

createJavascriptVariable

public static String createJavascriptVariable(String clientId)

encodeChildren

public void encodeChildren(FacesContext context,
                           UIComponent component)
                    throws IOException
Specified by:
encodeChildren in interface LayoutableRenderer
Overrides:
encodeChildren in class Renderer
Throws:
IOException

encodeEnd

public void encodeEnd(FacesContext facesContext,
                      UIComponent component)
               throws IOException
Specified by:
encodeEnd in interface LayoutableRenderer
Overrides:
encodeEnd in class Renderer
Throws:
IOException

getNodesAsJavascript

protected String getNodesAsJavascript(FacesContext facesContext,
                                      UIComponent root)
                               throws IOException
Throws:
IOException

nodeStateId

protected String nodeStateId(FacesContext facesContext,
                             UIComponent node)


Copyright © 2002-2008 Apache Software Foundation. All Rights Reserved.