Interface ListElement

    • Method Detail

      • getTitle

        String getTitle()
        Returns the title, taking into account a possible URL entered at the element. Since the element will be postprocessed, <l code="url">...</l> is used to create the link.
        Specified by:
        getTitle in interface Element
        Returns:
        the title, embedded in a link if necessary
      • setTitle

        void setTitle​(String title)
        Sets the title.
        Specified by:
        setTitle in interface Element
        Parameters:
        title - the title
      • getTitle

        String getTitle​(boolean link)
        Returns the title. Based on the link parameter, it will be returned with or without the linkcode.
        Parameters:
        link - If true, the title is returned as a link based on the link code assigned to the element, if applicable.
        Returns:
        the title. Based on the link parameter, it will be returned with or without the linkcode
      • createItem

        ListItem createItem​(String text,
                            boolean isIndented)
        Creates a list item after the last present item or as the first one if no existing ones.
        Parameters:
        text - the text for this item
        isIndented - Is this item to be indented
        Returns:
        The ListItem created
      • removeItem

        void removeItem​(ListItem item)
        Removes the indicated item.
        Parameters:
        item - the item to be removed
      • getLinkCode

        String getLinkCode()
        Returns the link code of the title field.
        Returns:
        the link code of the title field
      • setLinkCode

        void setLinkCode​(String code)
        Sets the link code for the title.
        Parameters:
        code - the link code to be set