org.apache.tapestry.scriptaculous
Class DefaultListItemRenderer

java.lang.Object
  extended by org.apache.tapestry.scriptaculous.DefaultListItemRenderer
All Implemented Interfaces:
ListItemRenderer

public class DefaultListItemRenderer
extends Object
implements ListItemRenderer

Default implementation of ListItemRenderer. Simply displays the values of each object supplied by invoking toString(). Other more advanced renderers may add html content to the <li> elements or similarly advanced UI displays.


Field Summary
static ListItemRenderer SHARED_INSTANCE
          Shared global instance default used by Suggest when no custom renderer is specified.
 
Constructor Summary
DefaultListItemRenderer()
           
 
Method Summary
 void renderList(IMarkupWriter writer, IRequestCycle cycle, Iterator values)
          Renders an unordered html list to the response, using the specified collection of values as the contents to fill in the
  • elements with.
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Field Detail

    SHARED_INSTANCE

    public static final ListItemRenderer SHARED_INSTANCE
    Shared global instance default used by Suggest when no custom renderer is specified.

    Constructor Detail

    DefaultListItemRenderer

    public DefaultListItemRenderer()
    Method Detail

    renderList

    public void renderList(IMarkupWriter writer,
                           IRequestCycle cycle,
                           Iterator values)
    Renders an unordered html list to the response, using the specified collection of values as the contents to fill in the
  • elements with.

    Specified by:
    renderList in interface ListItemRenderer
    Parameters:
    writer - Markup writer to write content in to.
    cycle - Current request cycle.
    values - Values used to render list.


    Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.