org.apache.myfaces.trinidadinternal.renderkit.core.desktop
Class TreeTableRenderer

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.TableRenderer
                  extended by org.apache.myfaces.trinidadinternal.renderkit.core.desktop.DesktopTableRenderer
                      extended by org.apache.myfaces.trinidadinternal.renderkit.core.desktop.TreeTableRenderer
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer

public class TreeTableRenderer
extends DesktopTableRenderer

Renderer for treeTable

Version:
$Name: $ ($Revision: adfrt/faces/adf-faces-impl/src/main/java/oracle/adfinternal/view/faces/renderkit/core/desktop/TreeTableRenderer.java#0 $) $Date: 10-nov-2005.19:03:37 $
Author:
The Oracle ADF Faces Team

Field Summary
 
Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.desktop.DesktopTableRenderer
LINKS_DIVIDER_TEXT
 
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
TreeTableRenderer()
           
 
Method Summary
protected  TableRenderingContext createRenderingContext(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component)
          Creates the correct subclass of the TableRenderingContext to use for this Renderer.
protected  java.util.Map<java.lang.String,java.lang.String> createResourceKeyMap()
           
 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 arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          render all pieces of the table
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  SpecialColumnRenderer getFocusColumnRenderer()
           
protected  boolean hasControlBarLinks(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          Should we render the select-all/none links?
protected  boolean isExpandAllEnabled(javax.faces.component.UIComponent component)
           
protected  boolean isImmediate(javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  void renderControlBarLinks(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component, boolean useDivider)
           
protected  void renderNavigationHeaderBars(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          Render the navigation header bars, i.e. all the bars that appear above the actual data table including the breadcrumbs at the end.
protected  void renderRangePagingControl(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent table)
          Render the next, previous links and the choicebar
protected  int renderSpecialColumns(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component, int physicalColumnIndex)
          used to render special column headers, like select and details.
protected  void renderTableRows(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext trc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean)
          render all the table rows
protected  boolean renderTableWithoutColumns(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          Render an empty table, if necessary.
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.desktop.DesktopTableRenderer
getAllDetailsEnabled, getHeight, getSummary, getTablePadding, renderCellFormatAttributes, renderColumnHeader, renderControlBar, renderControlBarLink, renderEmptyTableRow, renderEmptyTableRow, renderFooter, renderRegularHeaders, renderSelectionLinks, renderSingleRow, renderSubControlBar, renderTableAttributes, renderTableContent
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer
createRangeChangeEvent, decodeSelection, getEmptyText, getHeaderFormatClass, getRendersChildren, getRowHeaderFormatClass, getSharedHideShowNode, getSharedNavBarRenderer, getWidth, setSelectionResourceKeyMap, shouldRenderId
 
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
 

Constructor Detail

TreeTableRenderer

public TreeTableRenderer()
Method Detail

findTypeConstants

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

decode

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

createRenderingContext

protected TableRenderingContext createRenderingContext(javax.faces.context.FacesContext context,
                                                       org.apache.myfaces.trinidad.context.RenderingContext arc,
                                                       javax.faces.component.UIComponent component)
Creates the correct subclass of the TableRenderingContext to use for this Renderer.

Overrides:
createRenderingContext in class TableRenderer

renderTableWithoutColumns

protected boolean renderTableWithoutColumns(javax.faces.context.FacesContext context,
                                            org.apache.myfaces.trinidad.context.RenderingContext arc,
                                            TableRenderingContext tContext,
                                            javax.faces.component.UIComponent component)
                                     throws java.io.IOException
Render an empty table, if necessary.

Overrides:
renderTableWithoutColumns in class TableRenderer
Returns:
true if the table was empty, and an alternative empty version was shown, false otherwise.
Throws:
java.io.IOException

encodeAll

protected void encodeAll(javax.faces.context.FacesContext context,
                         org.apache.myfaces.trinidad.context.RenderingContext arc,
                         javax.faces.component.UIComponent component,
                         org.apache.myfaces.trinidad.bean.FacesBean bean)
                  throws java.io.IOException
render all pieces of the table

Overrides:
encodeAll in class TableRenderer
Throws:
java.io.IOException

isImmediate

protected boolean isImmediate(javax.faces.component.UIComponent component,
                              org.apache.myfaces.trinidad.bean.FacesBean bean)

renderNavigationHeaderBars

protected void renderNavigationHeaderBars(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext arc,
                                          TableRenderingContext tContext,
                                          javax.faces.component.UIComponent component,
                                          org.apache.myfaces.trinidad.bean.FacesBean bean)
                                   throws java.io.IOException
Render the navigation header bars, i.e. all the bars that appear above the actual data table including the breadcrumbs at the end.

Overrides:
renderNavigationHeaderBars in class TableRenderer
Throws:
java.io.IOException

renderRangePagingControl

protected final void renderRangePagingControl(javax.faces.context.FacesContext context,
                                              org.apache.myfaces.trinidad.context.RenderingContext arc,
                                              TableRenderingContext tContext,
                                              javax.faces.component.UIComponent table)
                                       throws java.io.IOException
Description copied from class: DesktopTableRenderer
Render the next, previous links and the choicebar

Overrides:
renderRangePagingControl in class DesktopTableRenderer
Throws:
java.io.IOException

hasControlBarLinks

protected boolean hasControlBarLinks(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc,
                                     TableRenderingContext tContext,
                                     javax.faces.component.UIComponent component)
                              throws java.io.IOException
Description copied from class: DesktopTableRenderer
Should we render the select-all/none links?

Overrides:
hasControlBarLinks in class DesktopTableRenderer
Throws:
java.io.IOException

renderControlBarLinks

protected void renderControlBarLinks(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc,
                                     TableRenderingContext tContext,
                                     javax.faces.component.UIComponent component,
                                     boolean useDivider)
                              throws java.io.IOException
Overrides:
renderControlBarLinks in class DesktopTableRenderer
useDivider - whether to render a divider after all the links
Throws:
java.io.IOException

isExpandAllEnabled

protected boolean isExpandAllEnabled(javax.faces.component.UIComponent component)

renderSpecialColumns

protected int renderSpecialColumns(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext arc,
                                   TableRenderingContext tContext,
                                   javax.faces.component.UIComponent component,
                                   int physicalColumnIndex)
                            throws java.io.IOException
used to render special column headers, like select and details.

Overrides:
renderSpecialColumns in class TableRenderer
Returns:
the next physicalColumnIndex
Throws:
java.io.IOException

renderTableRows

protected void renderTableRows(javax.faces.context.FacesContext context,
                               org.apache.myfaces.trinidad.context.RenderingContext arc,
                               TableRenderingContext trc,
                               javax.faces.component.UIComponent component,
                               org.apache.myfaces.trinidad.bean.FacesBean bean)
                        throws java.io.IOException
render all the table rows

Overrides:
renderTableRows in class DesktopTableRenderer
Throws:
java.io.IOException

getFocusColumnRenderer

protected SpecialColumnRenderer getFocusColumnRenderer()

createResourceKeyMap

protected java.util.Map<java.lang.String,java.lang.String> createResourceKeyMap()
Overrides:
createResourceKeyMap in class TableRenderer


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