Class SimpleList

  • All Implemented Interfaces:
    ListFormatter

    public class SimpleList
    extends Object
    implements ListFormatter
    Simple list formatter.
    Version:
    $Id$
    Author:
    Matthias L. Jugel
    • Constructor Detail

      • SimpleList

        public SimpleList()
    • Method Detail

      • format

        public void format​(Writer writer,
                           Linkable current,
                           String listComment,
                           Collection c,
                           String emptyText,
                           boolean showSize)
                    throws 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:
        IOException