Package org.radeox.macro.list
Class AtoZListFormatter
- java.lang.Object
-
- org.radeox.macro.list.AtoZListFormatter
-
- All Implemented Interfaces:
ListFormatter
public class AtoZListFormatter extends Object implements ListFormatter
Formats a list as AtoZ listing separated by the alphabetical characters.- Version:
- $Id: AtoZListFormatter.java 7707 2006-04-12 17:30:19Z ian@caret.cam.ac.uk $
- Author:
- Matthias L. Jugel
-
-
Constructor Summary
Constructors Constructor Description AtoZListFormatter()
-
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 an A to Z indexStringgetName()
-
-
-
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 an A to Z index- 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
-
-