org.alfresco.web.bean.forums
Class ForumsBean.TopicBubbleViewRenderer

java.lang.Object
  extended by org.alfresco.web.bean.forums.ForumsBean.TopicBubbleViewRenderer
All Implemented Interfaces:
java.io.Serializable, IRichListRenderer
Enclosing class:
ForumsBean

public static class ForumsBean.TopicBubbleViewRenderer
extends java.lang.Object
implements IRichListRenderer

Class to implement a bubble view for the RichList component used in the topics screen

See Also:
Serialized Form

Field Summary
static java.lang.String VIEWMODEID
           
 
Constructor Summary
ForumsBean.TopicBubbleViewRenderer()
           
 
Method Summary
 java.lang.String getViewModeID()
          Return the unique view mode identifier that this renderer is responsible for.
static void renderBubbleBottom(java.io.Writer out, java.lang.String contextPath, java.lang.String colour)
          Renders the bottom part of the bubble i.e.
static void renderBubbleMiddle(java.io.Writer out, java.lang.String contextPath, java.lang.String colour)
          Renders the middle part of the bubble i.e.
static void renderBubbleTop(java.io.Writer out, java.lang.String contextPath, java.lang.String colour, java.lang.String titleBgColour)
          Renders the top part of the bubble i.e.
 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
Constructor Detail

ForumsBean.TopicBubbleViewRenderer

public ForumsBean.TopicBubbleViewRenderer()
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"

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

renderBubbleTop

public static void renderBubbleTop(java.io.Writer out,
                                   java.lang.String contextPath,
                                   java.lang.String colour,
                                   java.lang.String titleBgColour)
                            throws java.io.IOException
Renders the top part of the bubble i.e. before the header

Parameters:
out - The writer to output to
contextPath - Context path of the application
colour - The colour of the bubble
titleBgColour - Background colour of the header area
Throws:
java.io.IOException

renderBubbleMiddle

public static void renderBubbleMiddle(java.io.Writer out,
                                      java.lang.String contextPath,
                                      java.lang.String colour)
                               throws java.io.IOException
Renders the middle part of the bubble i.e. after the header and before the body

Parameters:
out - The writer to output to
contextPath - Context path of the application
colour - The colour of the bubble
Throws:
java.io.IOException

renderBubbleBottom

public static void renderBubbleBottom(java.io.Writer out,
                                      java.lang.String contextPath,
                                      java.lang.String colour)
                               throws java.io.IOException
Renders the bottom part of the bubble i.e. after the body

Parameters:
out - The writer to output to
contextPath - Context path of the application
colour - The colour of the bubble
Throws:
java.io.IOException


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