Class List

  • All Implemented Interfaces:
    java.lang.Iterable<Node>, Sequence<Node>
    Direct Known Subclasses:
    BulletedList, NumberedList

    public abstract class List
    extends Block
    Abstract base class for list elements.

    TODO Add indent and item spacing properties.

    • Constructor Detail

      • List

        public List()
      • List

        public List​(List list,
                    boolean recursive)
    • Method Detail

      • insert

        public void insert​(Node node,
                           int index)
        Description copied from interface: Sequence
        Inserts an item into the sequence at a specific index.
        Specified by:
        insert in interface Sequence<Node>
        Overrides:
        insert in class Element
        Parameters:
        node - The item to be added to the sequence.
        index - The index at which the item should be inserted. Must be a value between 0 and getLength().