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

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
All Implemented Interfaces:
java.lang.Cloneable, org.apache.myfaces.trinidad.render.TypedRenderer
Direct Known Subclasses:
TreeTableRenderer

public class DesktopTableRenderer
extends TableRenderer


Field Summary
static java.lang.String 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
  DesktopTableRenderer()
           
protected DesktopTableRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
 
Method Summary
protected  void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
           
protected  boolean getAllDetailsEnabled(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getHeight(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.String getSummary(org.apache.myfaces.trinidad.bean.FacesBean bean)
           
protected  java.lang.Object getTablePadding(javax.faces.component.UIComponent component)
           
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  void renderCellFormatAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext)
           
protected  void renderColumnHeader(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          render the complete column header, including the special columns (like select,details,...) and the regular table columns
protected  void renderControlBar(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          Renders the control bar
protected  void renderControlBarLink(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, java.lang.String onclick, java.lang.String translationKey, java.lang.String id, boolean hasDivider)
           
protected  void renderControlBarLinks(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext trc, javax.faces.component.UIComponent component, boolean useDivider)
           
protected  void renderEmptyTableRow(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, int specialColumnCount)
          Renders a row for an empty table.
protected  void renderEmptyTableRow(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, int specialColumnCount, org.apache.myfaces.trinidad.render.CoreRenderer emptyTextRenderer)
           
protected  void renderFooter(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
           
protected  void renderRangePagingControl(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          Render the next, previous links and the choicebar
protected  void renderRegularHeaders(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component, int physicalCol)
          renders the regular table column headers.
protected  void renderSelectionLinks(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
           
protected  void renderSingleRow(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
           
protected  void renderSubControlBar(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component, boolean isUpper)
          Render sthe area with the filter and links, if necessary
protected  void renderTableAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean, java.lang.Object cellPadding, java.lang.Object border)
          renders attributes on the outermost table element.
protected  void renderTableContent(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, TableRenderingContext tContext, javax.faces.component.UIComponent component)
          Renders the actual table content, with headers
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)
           
 
Methods inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer
createRangeChangeEvent, createRenderingContext, createResourceKeyMap, decode, decodeSelection, encodeAll, getEmptyText, getHeaderFormatClass, getRendersChildren, getRowHeaderFormatClass, getSharedHideShowNode, getSharedNavBarRenderer, getWidth, renderNavigationHeaderBars, renderSpecialColumns, renderTableWithoutColumns, 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
 

Field Detail

LINKS_DIVIDER_TEXT

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

DesktopTableRenderer

protected DesktopTableRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)

DesktopTableRenderer

public DesktopTableRenderer()
Method Detail

findTypeConstants

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

renderSingleRow

protected final void renderSingleRow(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc,
                                     TableRenderingContext tContext,
                                     javax.faces.component.UIComponent component)
                              throws java.io.IOException
Specified by:
renderSingleRow in class TableRenderer
Throws:
java.io.IOException

renderSelectionLinks

protected void renderSelectionLinks(javax.faces.context.FacesContext context,
                                    org.apache.myfaces.trinidad.context.RenderingContext arc,
                                    TableRenderingContext tContext,
                                    javax.faces.component.UIComponent component)
                             throws java.io.IOException
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
Should we render the select-all/none links?

Throws:
java.io.IOException

renderControlBarLinks

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

renderControlBarLink

protected final void renderControlBarLink(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext arc,
                                          java.lang.String onclick,
                                          java.lang.String translationKey,
                                          java.lang.String id,
                                          boolean hasDivider)
                                   throws java.io.IOException
Throws:
java.io.IOException

renderSubControlBar

protected void renderSubControlBar(javax.faces.context.FacesContext context,
                                   org.apache.myfaces.trinidad.context.RenderingContext arc,
                                   TableRenderingContext tContext,
                                   javax.faces.component.UIComponent component,
                                   boolean isUpper)
                            throws java.io.IOException
Description copied from class: TableRenderer
Render sthe area with the filter and links, if necessary

Specified by:
renderSubControlBar in class TableRenderer
Throws:
java.io.IOException

renderTableContent

protected void renderTableContent(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: TableRenderer
Renders the actual table content, with headers

Specified by:
renderTableContent in class TableRenderer
Throws:
java.io.IOException

renderControlBar

protected final void renderControlBar(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: TableRenderer
Renders the control bar

Specified by:
renderControlBar in class TableRenderer
Throws:
java.io.IOException

renderRangePagingControl

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

Throws:
java.io.IOException

getTablePadding

protected java.lang.Object getTablePadding(javax.faces.component.UIComponent component)

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
Throws:
java.io.IOException

renderTableAttributes

protected void renderTableAttributes(javax.faces.context.FacesContext context,
                                     org.apache.myfaces.trinidad.context.RenderingContext arc,
                                     javax.faces.component.UIComponent component,
                                     org.apache.myfaces.trinidad.bean.FacesBean bean,
                                     java.lang.Object cellPadding,
                                     java.lang.Object border)
                              throws java.io.IOException
renders attributes on the outermost table element. this includes width, cellpadding, cellspacing, border.

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

renderCellFormatAttributes

protected void renderCellFormatAttributes(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext arc,
                                          TableRenderingContext tContext)
                                   throws java.io.IOException
Throws:
java.io.IOException

renderEmptyTableRow

protected final void renderEmptyTableRow(javax.faces.context.FacesContext context,
                                         org.apache.myfaces.trinidad.context.RenderingContext arc,
                                         TableRenderingContext tContext,
                                         int specialColumnCount)
                                  throws java.io.IOException
Renders a row for an empty table. This includes the rowHeader and any special columns, and all the regular columns. The emptyText is rendered in the first column following the special columns.

Parameters:
specialColumnCount - The number of special columns in this table.
Throws:
java.io.IOException

renderEmptyTableRow

protected final void renderEmptyTableRow(javax.faces.context.FacesContext context,
                                         org.apache.myfaces.trinidad.context.RenderingContext arc,
                                         TableRenderingContext tContext,
                                         int specialColumnCount,
                                         org.apache.myfaces.trinidad.render.CoreRenderer emptyTextRenderer)
                                  throws java.io.IOException
Throws:
java.io.IOException

renderColumnHeader

protected final void renderColumnHeader(javax.faces.context.FacesContext context,
                                        org.apache.myfaces.trinidad.context.RenderingContext arc,
                                        TableRenderingContext tContext,
                                        javax.faces.component.UIComponent component)
                                 throws java.io.IOException
render the complete column header, including the special columns (like select,details,...) and the regular table columns

Throws:
java.io.IOException

renderRegularHeaders

protected final void renderRegularHeaders(javax.faces.context.FacesContext context,
                                          org.apache.myfaces.trinidad.context.RenderingContext arc,
                                          TableRenderingContext tContext,
                                          javax.faces.component.UIComponent component,
                                          int physicalCol)
                                   throws java.io.IOException
renders the regular table column headers.

Throws:
java.io.IOException

renderFooter

protected final void renderFooter(javax.faces.context.FacesContext context,
                                  org.apache.myfaces.trinidad.context.RenderingContext arc,
                                  TableRenderingContext tContext,
                                  javax.faces.component.UIComponent component)
                           throws java.io.IOException
Throws:
java.io.IOException

getSummary

protected java.lang.String getSummary(org.apache.myfaces.trinidad.bean.FacesBean bean)

getHeight

protected java.lang.String getHeight(org.apache.myfaces.trinidad.bean.FacesBean bean)

getAllDetailsEnabled

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


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