org.radeox.macro.list
Class SimpleList

java.lang.Object
  extended byorg.radeox.macro.list.SimpleList
All Implemented Interfaces:
ListFormatter

public class SimpleList
extends java.lang.Object
implements ListFormatter

Simple list formatter.

Version:
$Id: SimpleList.java,v 1.5 2004/03/01 11:02:13 leo Exp $
Author:
Matthias L. Jugel

Constructor Summary
SimpleList()
           
 
Method Summary
 void format(java.io.Writer writer, Linkable current, java.lang.String listComment, java.util.Collection c, java.lang.String emptyText, boolean showSize)
          Display a simple vertical list.
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleList

public SimpleList()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ListFormatter

format

public void format(java.io.Writer writer,
                   Linkable current,
                   java.lang.String listComment,
                   java.util.Collection c,
                   java.lang.String emptyText,
                   boolean showSize)
            throws java.io.IOException
Description copied from interface: ListFormatter
Display a simple vertical list.

Specified by:
format in interface ListFormatter
Parameters:
writer - Writer to write the list output to
current - the current linkable
listComment - String to display before the list
c - Collection of Linkables, Snips or Nameables to display
emptyText - Text to display if collection is empty
showSize - If showSize is true then the size of the collection is displayed
Throws:
java.io.IOException


Copyright © 2003 Matthias L. Jugel, Stephan J. Schmidt. All Rights Reserved.