public class ExampleListFormatter extends Object implements ListFormatter
| Constructor and Description |
|---|
ExampleListFormatter() |
| Modifier and Type | Method and Description |
|---|---|
void |
format(Writer writer,
Linkable current,
String listComment,
Collection c,
String emptyText,
boolean showSize)
Create a simple list.
|
String |
getName() |
public String getName()
getName in interface ListFormatterpublic void format(Writer writer, Linkable current, String listComment, Collection c, String emptyText, boolean showSize) throws IOException
format in interface ListFormatterwriter - 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 displayedIOExceptionCopyright © 2003–2021 Sakai Project. All rights reserved.