java.lang.Objectcom.lowagie.text.List
All Implemented Interfaces:
TextElementArray
Direct Known Subclasses:
RomanList, ZapfDingbatsNumberList, GreekList, ZapfDingbatsList
List
contains several ListItem
s.
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 | ||
---|---|---|
public static final boolean | ORDERED | a possible value for the numbered parameter |
public static final boolean | UNORDERED | a possible value for the numbered parameter |
public static final boolean | NUMERICAL | a possible value for the lettered parameter |
public static final boolean | ALPHABETICAL | a possible value for the lettered parameter |
public static final boolean | UPPERCASE | a possible value for the lettered parameter |
public static final boolean | LOWERCASE | a possible value for the lettered parameter |
protected ArrayList | list | This is the ArrayList containing the different ListItem s. |
protected boolean | numbered | Indicates if the list has to be numbered. |
protected boolean | lettered | Indicates if the listsymbols are numerical or alphabetical. |
protected boolean | lowercase | Indicates if the listsymbols are lowercase or uppercase. |
protected boolean | autoindent | Indicates if the indentation has to be set automatically. |
protected boolean | alignindent | Indicates if the indentation of all the items has to be aligned. |
protected int | first | This variable indicates the first number of a numbered list. |
protected Chunk | symbol | This is the listsymbol of a list that is not numbered. |
protected String | preSymbol | In case you are using numbered/lettered lists, this String is added before the number/letter.
|
protected String | postSymbol | In case you are using numbered/lettered lists, this String is added after the number/letter.
|
protected float | indentationLeft | The indentation of this list on the left side. |
protected float | indentationRight | The indentation of this list on the right side. |
protected float | symbolIndent | The indentation of the listitems. |
Constructor: |
---|
List . |
List with a specific symbol indentation.
|
List .
|
List .
|
List .
Remark: the parameter symbolIndent is important for instance when generating PDF-documents; it indicates the indentation of the listsymbol. It is not important for HTML-documents.
|
|
Method from com.lowagie.text.List Summary: |
---|
add, getChunks, getFirst, getIndentationLeft, getIndentationRight, getItems, getPostSymbol, getPreSymbol, getSymbol, getSymbolIndent, getTotalLeading, isAlignindent, isAutoindent, isContent, isEmpty, isLettered, isLowercase, isNestable, isNumbered, normalizeIndentation, process, setAlignindent, setAutoindent, setFirst, setIndentationLeft, setIndentationRight, setLettered, setListSymbol, setListSymbol, setLowercase, setNumbered, setPostSymbol, setPreSymbol, setSymbolIndent, size, type |
Methods from java.lang.Object: |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method from com.lowagie.text.List Detail: |
---|
Object to the List . |
|
|
|
|
|
|
|
|
|
|
|
|
|
true if the list is empty. |
|
|
|
|
|
ElementListener . |
|
|
|
|
|
|
|
This is a shortcut for |
|
|
|
|
|
|
|