org.apache.myfaces.trinidadinternal.renderkit.core.xhtml
Class TreeRenderer

java.lang.Object
  extended by javax.faces.render.Renderer
      extended by org.apache.myfaces.trinidad.render.CoreRenderer
          extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
              extended by org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TreeRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class TreeRenderer
extends XhtmlRenderer

Renderer for trees.

Author:
The Oracle ADF Faces Team

Field Summary
protected static int EXPAND_ALWAYS
           
protected static int EXPAND_CLOSED
           
protected static int EXPAND_OPEN
           
protected static int NO_CHILDREN
           
static java.lang.String SELECTED_PARAM
           
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
TRANSPARENT_GIF
 
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
CHAR_UNDEFINED, NO_CHILD_INDEX
 
Constructor Summary
  TreeRenderer()
           
protected TreeRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
 void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
           
protected  void encodeAll(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  java.lang.String getConnectingBackgroundIcon(boolean isLine, boolean leftToRight)
           
protected  java.lang.String getDefaultIconName()
           
protected  org.apache.myfaces.trinidad.model.RowKeySet getExpandedRowKeys(org.apache.myfaces.trinidad.component.UIXHierarchy tree)
           
protected  java.lang.String getIconBackgroundIcon(int expand, boolean isLeftToRight)
           
protected  boolean getImmediate(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
 boolean getRendersChildren()
           
protected  java.util.Map<java.lang.Object,java.lang.Boolean> getSelectedPaths(java.lang.Object focusPath)
           
protected  void renderExpandCell(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, int expanded, java.lang.String onclick)
           
protected  void renderIconCell(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext rc, org.apache.myfaces.trinidad.component.UIXHierarchy tree, java.lang.String backgroundIcon, java.lang.String icon, boolean isIconAbsoluteURI, java.lang.Object altText, java.lang.String width, java.lang.String height, java.lang.String onclick)
           
protected  boolean setInitialPath(org.apache.myfaces.trinidad.component.UIXHierarchy tree, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
          Returns true if the component should render an ID.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
cloneWithType, enableScriptDeferring, getAbsoluteImageUri, getBaseImageUri, getDefaultStyleClass, getInlineStyle, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getShortDesc, getStyleClass, renderAllAttributes, renderAllAttributes, renderDecorativeIcon, renderDecorativeIcon, renderEventHandlers, renderFormattedText, renderHAlign, renderInlineStyle, renderInlineStyleAttribute, renderPossiblyFormattedText, renderScriptDeferAttribute, renderScriptTypeAttribute, renderShortDescAttribute, renderSpacer, renderStyleAttributes, renderStyleAttributes, renderTransparent, renderVerticalSpacer, skipDecode, supportsAccessKeys, supportsAdvancedForms, supportsAutoCompleteFormElements, supportsDisabledFormElements, supportsEditing, supportsIntrinsicEvents, supportsNavigation, supportsReadonlyFormElements, supportsScripting, supportsSeparateWindow, supportsStyleAttributes, supportsTarget, supportsTextPresentation, supportsXMLDOM
 
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, 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
 

Field Detail

NO_CHILDREN

protected static final int NO_CHILDREN
See Also:
Constant Field Values

EXPAND_CLOSED

protected static final int EXPAND_CLOSED
See Also:
Constant Field Values

EXPAND_OPEN

protected static final int EXPAND_OPEN
See Also:
Constant Field Values

EXPAND_ALWAYS

protected static final int EXPAND_ALWAYS
See Also:
Constant Field Values

SELECTED_PARAM

public static final java.lang.String SELECTED_PARAM
See Also:
Constant Field Values
Constructor Detail

TreeRenderer

public TreeRenderer()

TreeRenderer

protected TreeRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Method Detail

findTypeConstants

protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
Overrides:
findTypeConstants in class XhtmlRenderer

getRendersChildren

public boolean getRendersChildren()
Overrides:
getRendersChildren in class javax.faces.render.Renderer

decode

public void decode(javax.faces.context.FacesContext context,
                   javax.faces.component.UIComponent component)
Overrides:
decode in class javax.faces.render.Renderer

encodeAll

protected void encodeAll(javax.faces.context.FacesContext context,
                         org.apache.myfaces.trinidad.context.RenderingContext rc,
                         javax.faces.component.UIComponent component,
                         org.apache.myfaces.trinidad.bean.FacesBean bean)
                  throws java.io.IOException
Overrides:
encodeAll in class org.apache.myfaces.trinidad.render.CoreRenderer
Throws:
java.io.IOException

shouldRenderId

protected boolean shouldRenderId(javax.faces.context.FacesContext context,
                                 javax.faces.component.UIComponent component)
Description copied from class: XhtmlRenderer
Returns true if the component should render an ID. Components that deliver events should always return "true".

Overrides:
shouldRenderId in class XhtmlRenderer

setInitialPath

protected boolean setInitialPath(org.apache.myfaces.trinidad.component.UIXHierarchy tree,
                                 org.apache.myfaces.trinidad.bean.FacesBean bean)

getSelectedPaths

protected java.util.Map<java.lang.Object,java.lang.Boolean> getSelectedPaths(java.lang.Object focusPath)

getExpandedRowKeys

protected org.apache.myfaces.trinidad.model.RowKeySet getExpandedRowKeys(org.apache.myfaces.trinidad.component.UIXHierarchy tree)

getConnectingBackgroundIcon

protected java.lang.String getConnectingBackgroundIcon(boolean isLine,
                                                       boolean leftToRight)

getIconBackgroundIcon

protected java.lang.String getIconBackgroundIcon(int expand,
                                                 boolean isLeftToRight)

renderExpandCell

protected void renderExpandCell(javax.faces.context.FacesContext context,
                                org.apache.myfaces.trinidad.context.RenderingContext rc,
                                int expanded,
                                java.lang.String onclick)
                         throws java.io.IOException
Throws:
java.io.IOException

renderIconCell

protected void renderIconCell(javax.faces.context.FacesContext context,
                              org.apache.myfaces.trinidad.context.RenderingContext rc,
                              org.apache.myfaces.trinidad.component.UIXHierarchy tree,
                              java.lang.String backgroundIcon,
                              java.lang.String icon,
                              boolean isIconAbsoluteURI,
                              java.lang.Object altText,
                              java.lang.String width,
                              java.lang.String height,
                              java.lang.String onclick)
                       throws java.io.IOException
Throws:
java.io.IOException

getImmediate

protected boolean getImmediate(org.apache.myfaces.trinidad.bean.FacesBean bean)

getDefaultIconName

protected java.lang.String getDefaultIconName()


Copyright © 2001-2007 Apache Software Foundation. All Rights Reserved.