Class ListItem

    • Constructor Detail

      • ListItem

        public ListItem()
        Creates a ListItem.
      • ListItem

        public ListItem​(java.lang.String text)
        Creates a list item with text.
        Parameters:
        text - the textual contents of the list item
      • ListItem

        public ListItem​(Image image)
        Creates a list item with an image.
        Parameters:
        image - the graphical contents of the list item
    • Method Detail

      • setListSymbolOrdinalValue

        public ListItem setListSymbolOrdinalValue​(int ordinalValue)
        Customizes the index of the item in the list.
        Parameters:
        ordinalValue - the custom value property of an ordered list's list item.
        Returns:
        this listItem.
      • getDefaultProperty

        public <T1> T1 getDefaultProperty​(int property)
        Description copied from interface: IPropertyContainer
        Gets the default property from this entity.
        Specified by:
        getDefaultProperty in interface IPropertyContainer
        Overrides:
        getDefaultProperty in class BlockElement<Div>
        Type Parameters:
        T1 - the return type associated with the property
        Parameters:
        property - the property to be retrieved
        Returns:
        the default property value. If the default property is not defined, null will be returned
      • setListSymbol

        public ListItem setListSymbol​(java.lang.String symbol)
        Sets the list item symbol to be used.
        Parameters:
        symbol - the textual symbol to be used for the item.
        Returns:
        this list item.
      • setListSymbol

        public ListItem setListSymbol​(Text text)
        Sets the list item symbol to be used.
        Parameters:
        text - the Text object to be used for the item.
        Returns:
        this list item.
      • setListSymbol

        public ListItem setListSymbol​(Image image)
        Sets the list item symbol to be used.
        Parameters:
        image - the Image object to be used for the item.
        Returns:
        this list.
      • setListSymbol

        public ListItem setListSymbol​(ListNumberingType listNumberingType)
        Sets the list item numbering type to be used.
        Parameters:
        listNumberingType - the ListNumberingType that will generate appropriate prefixes for the ListItem.
        Returns:
        this list item.