Package org.radeox.macro.list
Class ExampleListFormatter
- java.lang.Object
-
- org.radeox.macro.list.ExampleListFormatter
-
- All Implemented Interfaces:
ListFormatter
public class ExampleListFormatter extends Object implements ListFormatter
Tutorial example list formatter.- Version:
- $Id: ExampleListFormatter.java 7707 2006-04-12 17:30:19Z ian@caret.cam.ac.uk $
- Author:
- Stephan J. Schmidt
-
-
Constructor Summary
Constructors Constructor Description ExampleListFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidformat(Writer writer, Linkable current, String listComment, Collection c, String emptyText, boolean showSize)Create a simple list.StringgetName()
-
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceListFormatter
-
format
public void format(Writer writer, Linkable current, String listComment, Collection c, String emptyText, boolean showSize) throws IOException
Create a simple list.- Specified by:
formatin interfaceListFormatter- Parameters:
writer- Writer to write the list output tocurrent- the current linkablelistComment- String to display before the listc- Collection of Linkables, Snips or Nameables to displayemptyText- Text to display if collection is emptyshowSize- If showSize is true then the size of the collection is displayed- Throws:
IOException
-
-