com.lowagie.text
public class ListItem extends Paragraph
ListItem
is a Paragraph
that can be added to a List
.
Example 1:
The result of this code looks like this:List list = new List(true, 20); list.add(new ListItem("First line")); list.add(new ListItem("The second line is longer to see what happens once the end of the line is reached. Will it start on a new line?")); list.add(new ListItem("Third line"));
The result of this code looks like this:List overview = new List(false, 10); overview.add(new ListItem("This is an item")); overview.add("This is another item");
Field Summary | |
---|---|
static long | serialVersionUID |
Chunk | symbol this is the symbol that will precede the listitem. |
Constructor Summary | |
---|---|
ListItem()
Constructs a ListItem . | |
ListItem(float leading)
Constructs a ListItem with a certain leading.
| |
ListItem(Chunk chunk)
Constructs a ListItem with a certain Chunk .
| |
ListItem(String string)
Constructs a ListItem with a certain String .
| |
ListItem(String string, Font font)
Constructs a ListItem with a certain String
and a certain Font .
| |
ListItem(float leading, Chunk chunk)
Constructs a ListItem with a certain Chunk
and a certain leading.
| |
ListItem(float leading, String string)
Constructs a ListItem with a certain String
and a certain leading.
| |
ListItem(float leading, String string, Font font)
Constructs a ListItem with a certain leading, String
and Font .
| |
ListItem(Phrase phrase)
Constructs a ListItem with a certain Phrase .
|
Method Summary | |
---|---|
Chunk | getListSymbol()
Returns the listsymbol.
|
void | setIndentationLeft(float indentation, boolean autoindent)
Sets the indentation of this paragraph on the left side.
|
void | setListSymbol(Chunk symbol)
Sets the listsymbol.
|
int | type()
Gets the type of the text element.
|
ListItem
.ListItem
with a certain leading.
Parameters: leading the leading
ListItem
with a certain Chunk
.
Parameters: chunk a Chunk
ListItem
with a certain String
.
Parameters: string a String
ListItem
with a certain String
and a certain Font
.
Parameters: string a String
font a String
ListItem
with a certain Chunk
and a certain leading.
Parameters: leading the leading chunk a Chunk
ListItem
with a certain String
and a certain leading.
Parameters: leading the leading string a String
ListItem
with a certain leading, String
and Font
.
Parameters: leading the leading string a String
font a Font
ListItem
with a certain Phrase
.
Parameters: phrase a Phrase
Returns: a Chunk
Parameters: indentation the new indentation
Parameters: symbol a Chunk
Returns: a type