|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
com.lowagie.text.Phrase
com.lowagie.text.Paragraph
com.lowagie.text.ListItem
public class ListItem
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:
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:
Element,
List,
Paragraph,
Serialized Form| Field Summary | |
|---|---|
private static long |
serialVersionUID
|
private Chunk |
symbol
this is the symbol that wil precede the listitem. |
| Fields inherited from class com.lowagie.text.Paragraph |
|---|
alignment, indentationLeft, indentationRight, keeptogether, multipliedLeading, spacingAfter, spacingBefore |
| Fields inherited from class com.lowagie.text.Phrase |
|---|
font, leading |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Fields inherited from interface com.lowagie.text.Element |
|---|
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE |
| Constructor Summary | |
|---|---|
ListItem()
Constructs a ListItem. |
|
ListItem(Chunk chunk)
Constructs a ListItem with a certain Chunk. |
|
ListItem(float leading)
Constructs a ListItem with a certain leading. |
|
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. |
|
ListItem(Properties attributes)
Deprecated. As of iText 2.0.3, replaced by ElementFactory.getListItem(Properties),
scheduled for removal at 2.1.0 |
|
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. |
|
| Method Summary | |
|---|---|
Chunk |
getListSymbol()
Returns the listsymbol. |
Chunk |
listSymbol()
Deprecated. As of iText 2.0.3, replaced by getListSymbol(),
scheduled for removal at 2.1.0 |
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. |
| Methods inherited from class com.lowagie.text.Phrase |
|---|
add, addAll, addChunk, addSpecial, content, font, getChunks, getContent, getFont, getInstance, getInstance, getInstance, getLeading, hasLeading, isContent, isEmpty, isNestable, leading, leadingDefined, process, setFont |
| Methods inherited from class java.util.ArrayList |
|---|
addAll, clear, clone, contains, ensureCapacity, get, indexOf, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
equals, hashCode, iterator, listIterator, listIterator, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
containsAll, removeAll, retainAll, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.lowagie.text.Element |
|---|
toString |
| Methods inherited from interface java.util.List |
|---|
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList |
| Field Detail |
|---|
private static final long serialVersionUID
private Chunk symbol
| Constructor Detail |
|---|
public ListItem()
ListItem.
public ListItem(float leading)
ListItem with a certain leading.
leading - the leadingpublic ListItem(Chunk chunk)
ListItem with a certain Chunk.
chunk - a Chunkpublic ListItem(String string)
ListItem with a certain String.
string - a String
public ListItem(String string,
Font font)
ListItem with a certain String
and a certain Font.
string - a Stringfont - a String
public ListItem(float leading,
Chunk chunk)
ListItem with a certain Chunk
and a certain leading.
leading - the leadingchunk - a Chunk
public ListItem(float leading,
String string)
ListItem with a certain String
and a certain leading.
leading - the leadingstring - a String
public ListItem(float leading,
String string,
Font font)
ListItem with a certain leading, String
and Font.
leading - the leadingstring - a Stringfont - a Fontpublic ListItem(Phrase phrase)
ListItem with a certain Phrase.
phrase - a Phrasepublic ListItem(Properties attributes)
ElementFactory.getListItem(Properties),
scheduled for removal at 2.1.0
ListItem that has been constructed taking in account
the value of some attributes.
attributes - Some attributes| Method Detail |
|---|
public int type()
type in interface Elementtype in class Paragraphpublic void setListSymbol(Chunk symbol)
symbol - a Chunk
public void setIndentationLeft(float indentation,
boolean autoindent)
indentation - the new indentationpublic Chunk getListSymbol()
Chunkpublic Chunk listSymbol()
getListSymbol(),
scheduled for removal at 2.1.0
Chunk
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||