public class

ListItem

extends ContentNode
java.lang.Object
   ↳ com.pdftron.layout.ContentElement
     ↳ com.pdftron.layout.ContentNode
       ↳ com.pdftron.layout.ListItem

Class Overview

A class representing an item in a list in the document content tree.

Summary

Public Methods
List addList()
Add a nested list to the list item.
Paragraph addParagraph()
Adds a paragraph to the document.
Paragraph addParagraph(String text)
Add a new paragraph with the specified text to the list item.
int getIndentationLevel()
Get the indentation level of the list item.
int getItemIndex()
Get the index of the list item within the parent list.
int getListIdentifier()
Get the identifier of the list.
[Expand]
Inherited Methods
From class com.pdftron.layout.ContentNode
From class com.pdftron.layout.ContentElement
From class java.lang.Object

Public Methods

public List addList ()

Add a nested list to the list item.

Returns
  • The List object representing the nested list.

public Paragraph addParagraph ()

Adds a paragraph to the document.

Returns
  • The paragraph object

public Paragraph addParagraph (String text)

Add a new paragraph with the specified text to the list item.

Parameters
text The text content of the paragraph.
Returns
  • The Paragraph object representing the newly added paragraph.

public int getIndentationLevel ()

Get the indentation level of the list item.

Returns
  • The indentation level.

public int getItemIndex ()

Get the index of the list item within the parent list.

Returns
  • The index of the list item.

public int getListIdentifier ()

Get the identifier of the list.

Returns
  • The list identifier.