| com.lowagie.text.Phrase com.lowagie.text.Paragraph com.lowagie.text.ListItem
ListItem | public class ListItem extends Paragraph (Code) | | A ListItem is a Paragraph
that can be added to a List .
Example 1:
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:
-
First line
-
The second line is longer to see what happens once the end of the line is reached. Will it start on a new line?
-
Third line
Example 2:
List overview = new List(false, 10);
overview.add(new ListItem("This is an item"));
overview.add("This is another item");
The result of this code looks like this:
-
This is an item
-
This is another item
See Also: Element See Also: List See Also: Paragraph |
Constructor Summary | |
public | ListItem() Constructs a ListItem . | public | ListItem(float leading) Constructs a ListItem with a certain leading. | public | ListItem(Chunk chunk) Constructs a ListItem with a certain Chunk . | public | ListItem(String string) Constructs a ListItem with a certain String . | public | ListItem(String string, Font font) Constructs a ListItem with a certain String
and a certain Font . | public | ListItem(float leading, Chunk chunk) Constructs a ListItem with a certain Chunk
and a certain leading. | public | ListItem(float leading, String string) Constructs a ListItem with a certain String
and a certain leading. | public | ListItem(float leading, String string, Font font) Constructs a ListItem with a certain leading, String
and Font . | public | ListItem(Phrase phrase) Constructs a ListItem with a certain Phrase . | public | ListItem(java.util.Properties attributes) Returns a ListItem that has been constructed taking in account
the value of some attributes. |
ListItem | public ListItem()(Code) | | Constructs a ListItem .
|
ListItem | public ListItem(float leading)(Code) | | Constructs a ListItem with a certain leading.
Parameters: leading - the leading |
ListItem | public ListItem(Chunk chunk)(Code) | | Constructs a ListItem with a certain Chunk .
Parameters: chunk - a Chunk |
ListItem | public ListItem(String string)(Code) | | Constructs a ListItem with a certain String .
Parameters: string - a String |
ListItem | public ListItem(String string, Font font)(Code) | | Constructs a ListItem with a certain String
and a certain Font .
Parameters: string - a String Parameters: font - a String |
ListItem | public ListItem(float leading, Chunk chunk)(Code) | | Constructs a ListItem with a certain Chunk
and a certain leading.
Parameters: leading - the leading Parameters: chunk - a Chunk |
ListItem | public ListItem(float leading, String string)(Code) | | Constructs a ListItem with a certain String
and a certain leading.
Parameters: leading - the leading Parameters: string - a String |
ListItem | public ListItem(float leading, String string, Font font)(Code) | | Constructs a ListItem with a certain leading, String
and Font .
Parameters: leading - the leading Parameters: string - a String Parameters: font - a Font |
ListItem | public ListItem(Phrase phrase)(Code) | | Constructs a ListItem with a certain Phrase .
Parameters: phrase - a Phrase |
ListItem | public ListItem(java.util.Properties attributes)(Code) | | Returns a ListItem that has been constructed taking in account
the value of some attributes.
Parameters: attributes - Some attributes |
getListSymbol | public Chunk getListSymbol()(Code) | | Returns the listsymbol.
a Chunk |
setIndentationLeft | public void setIndentationLeft(float indentation, boolean autoindent)(Code) | | Sets the indentation of this paragraph on the left side.
Parameters: indentation - the new indentation |
setListSymbol | public void setListSymbol(Chunk symbol)(Code) | | Sets the listsymbol.
Parameters: symbol - a Chunk |
type | public int type()(Code) | | Gets the type of the text element.
a type |
|
|