Class ListItemBlock

  • All Implemented Interfaces:
    Block

    class ListItemBlock
    extends AbstractFatherBlock
    Block that represents the item in a list
    Version:
    $Id$
    • Field Detail

      • innerList

        private final ListBlock innerList
    • Constructor Detail

      • ListItemBlock

        ListItemBlock​(Block[] blocks,
                      ListBlock innerList)
        Creates the ListItemBlock.
        Parameters:
        blocks - text block, not null.
        innerList - child list
    • Method Detail

      • before

        final void before​(Sink sink)
        method called before traversing the childs
        Specified by:
        before in class AbstractFatherBlock
        Parameters:
        sink - a sink to fill
      • after

        final void after​(Sink sink)
        method called after traversing the childs
        Specified by:
        after in class AbstractFatherBlock
        Parameters:
        sink - a sink to fill
      • getInnerList

        final ListBlock getInnerList()
        Returns the innerList.
        Returns:
        UnorderedListBlock with the innerList.