Class TreeListBuilder


  • class TreeListBuilder
    extends java.lang.Object
    It helps to build
    Version:
    $Id$
    • Constructor Detail

      • TreeListBuilder

        TreeListBuilder​(FormatedTextParser formatTextParser)
                 throws java.lang.IllegalArgumentException
        Creates the TreeListBuilder.
        Parameters:
        formatTextParser - parser that create text blocks
        Throws:
        java.lang.IllegalArgumentException - if formatTextParser is null
    • Method Detail

      • feedEntry

        void feedEntry​(GenericListBlockParser.Type type,
                       int level,
                       java.lang.String text)
        recibe un nivel y un texto y armar magicamente (manteniendo estado) el �rbol
        Parameters:
        type - type of list
        level - indentation level of the item
        text - text of the item
      • getBlock

        ListBlock getBlock()
        Returns:
        a Block for the list that we received