org.alfresco.web.ui.common.renderer.data
Class RichListRenderer.DetailsViewRenderer

java.lang.Object
  extended by org.alfresco.web.ui.common.renderer.data.RichListRenderer.DetailsViewRenderer
All Implemented Interfaces:
java.io.Serializable, IRichListRenderer
Direct Known Subclasses:
AVMListRenderer.DetailsViewRenderer
Enclosing class:
RichListRenderer

public static class RichListRenderer.DetailsViewRenderer
extends java.lang.Object
implements IRichListRenderer

Class to implement a Details view for the RichList component

See Also:
Serialized Form

Field Summary
protected  int rowIndex
           
static java.lang.String STALE_CSS
           
static java.lang.String VIEWMODEID
           
 
Constructor Summary
RichListRenderer.DetailsViewRenderer()
           
 
Method Summary
 java.lang.String getRowStyle(javax.faces.context.FacesContext context, UIRichList richList, java.lang.Object row)
           
 java.lang.String getViewModeID()
          Return the unique view mode identifier that this renderer is responsible for.
 void renderListAfter(javax.faces.context.FacesContext context, UIRichList richList, UIColumn[] columns)
          Callback executed by the RichList component to render any adornments after the main list rows are rendered.
 void renderListBefore(javax.faces.context.FacesContext context, UIRichList richList, UIColumn[] columns)
          Callback executed by the RichList component to render any adornments before the main list rows are rendered.
 void renderListRow(javax.faces.context.FacesContext context, UIRichList richList, UIColumn[] columns, java.lang.Object row)
          Callback executed by the RichList component once per row of data to be rendered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VIEWMODEID

public static final java.lang.String VIEWMODEID
See Also:
Constant Field Values

STALE_CSS

public static final java.lang.String STALE_CSS
See Also:
Constant Field Values

rowIndex

protected int rowIndex
Constructor Detail

RichListRenderer.DetailsViewRenderer

public RichListRenderer.DetailsViewRenderer()
Method Detail

getViewModeID

public java.lang.String getViewModeID()
Description copied from interface: IRichListRenderer
Return the unique view mode identifier that this renderer is responsible for.

Specified by:
getViewModeID in interface IRichListRenderer
Returns:
Unique view mode identifier for this renderer e.g. "icons" or "details"

getRowStyle

public java.lang.String getRowStyle(javax.faces.context.FacesContext context,
                                    UIRichList richList,
                                    java.lang.Object row)

renderListBefore

public void renderListBefore(javax.faces.context.FacesContext context,
                             UIRichList richList,
                             UIColumn[] columns)
                      throws java.io.IOException
Description copied from interface: IRichListRenderer
Callback executed by the RichList component to render any adornments before the main list rows are rendered. This is generally used to output header items.

Specified by:
renderListBefore in interface IRichListRenderer
Parameters:
context - FacesContext
richList - The parent RichList component
columns - Array of columns to be shown
Throws:
java.io.IOException

renderListRow

public void renderListRow(javax.faces.context.FacesContext context,
                          UIRichList richList,
                          UIColumn[] columns,
                          java.lang.Object row)
                   throws java.io.IOException
Description copied from interface: IRichListRenderer
Callback executed by the RichList component once per row of data to be rendered. The bean used as the current row data is provided, but generally rendering of the column data will be performed by recursively encoding Column child components.

Specified by:
renderListRow in interface IRichListRenderer
Parameters:
context - FacesContext
richList - The parent RichList component
columns - Array of columns to be shown
row - The data bean for the current row
Throws:
java.io.IOException

renderListAfter

public void renderListAfter(javax.faces.context.FacesContext context,
                            UIRichList richList,
                            UIColumn[] columns)
                     throws java.io.IOException
Description copied from interface: IRichListRenderer
Callback executed by the RichList component to render any adornments after the main list rows are rendered. This is generally used to output footer items.

Specified by:
renderListAfter in interface IRichListRenderer
Parameters:
context - FacesContext
richList - The parent RichList component
columns - Array of columns to be shown
Throws:
java.io.IOException


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.