java.lang.Object
com.lowagie.text.List
- All Implemented Interfaces:
Element,TextElementArray
- Direct Known Subclasses:
GreekList,RomanList,ZapfDingbatsList,ZapfDingbatsNumberList
Deprecated.
A
List contains several ListItems.
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
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanDeprecated.Indicates if the indentation of all the items has to be aligned.static final booleanDeprecated.a possible value for the lettered parameterprotected booleanDeprecated.Indicates if the indentation has to be set automatically.protected intDeprecated.This variable indicates the first number of a numbered list.protected floatDeprecated.The indentation of this list on the left side.protected floatDeprecated.The indentation of this list on the right side.protected booleanDeprecated.Indicates if the listsymbols are numerical or alphabetical.Deprecated.This is theArrayListcontaining the differentListItems.protected booleanDeprecated.Indicates if the listsymbols are lowercase or uppercase.static final booleanDeprecated.a possible value for the lettered parameterprotected booleanDeprecated.Indicates if the list has to be numbered.static final booleanDeprecated.a possible value for the lettered parameterstatic final booleanDeprecated.a possible value for the numbered parameterprotected StringDeprecated.In case you are using numbered/lettered lists, this String is added after the number/letter.protected StringDeprecated.In case you are using numbered/lettered lists, this String is added before the number/letter.protected ChunkDeprecated.This is the listsymbol of a list that is not numbered.protected floatDeprecated.The indentation of the listitems.static final booleanDeprecated.a possible value for the numbered parameterstatic final booleanDeprecated.a possible value for the lettered parameterFields 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, FOOTNOTE, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MODIFICATIONDATE, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Constructor Summary
ConstructorsConstructorDescriptionList()Deprecated.Constructs aList.List(boolean numbered) Deprecated.Constructs aList.List(boolean numbered, boolean lettered) Deprecated.Constructs aList.List(boolean numbered, boolean lettered, float symbolIndent) Deprecated.Creates a listList(boolean numbered, float symbolIndent) Deprecated.Constructs aList.List(float symbolIndent) Deprecated.Constructs aListwith a specific symbol indentation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Adds anElementto theList.booleanDeprecated.Adds a nestedListto theList.booleanDeprecated.Adds aStringto theList.Deprecated.Gets all the chunks in this element.intgetFirst()Deprecated.Gets the first number .floatDeprecated.Gets the indentation of this paragraph on the left side.floatDeprecated.Gets the indentation of this paragraph on the right side.getItems()Deprecated.Gets all the items in the list.Deprecated.Returns the String that is after a number or letter in the list symbol.Deprecated.Returns the String that is before a number or letter in the list symbol.Deprecated.Gets the Chunk containing the symbol.floatDeprecated.Gets the symbol indentation.floatDeprecated.Gets the leading of the first listitem.booleanDeprecated.Checks if all the listitems should be aligned.booleanDeprecated.Checks if the indentation of list items is done automatically.booleanDeprecated.Checks if this element is a content object.booleanisEmpty()Deprecated.Returnstrueif the list is empty.booleanDeprecated.Checks if the list is lettered.booleanDeprecated.Checks if the list lettering is lowercase.booleanDeprecated.Checks if this element is nestable.booleanDeprecated.Checks if the list is numbered.voidDeprecated.Makes sure all the items in the list have the same indentation.booleanprocess(ElementListener listener) Deprecated.Processes the element by adding it (or the different parts) to anElementListener.voidsetAlignindent(boolean alignindent) Deprecated.voidsetAutoindent(boolean autoindent) Deprecated.voidsetFirst(int first) Deprecated.Sets the number that has to come first in the list.voidsetIndentationLeft(float indentation) Deprecated.Sets the indentation of this paragraph on the left side.voidsetIndentationRight(float indentation) Deprecated.Sets the indentation of this paragraph on the right side.voidsetLettered(boolean lettered) Deprecated.voidsetListSymbol(Chunk symbol) Deprecated.Sets the listsymbol.voidsetListSymbol(String symbol) Deprecated.Sets the listsymbol.voidsetLowercase(boolean uppercase) Deprecated.voidsetNumbered(boolean numbered) Deprecated.voidsetPostSymbol(String postSymbol) Deprecated.Sets the String that has to be added after a number or letter in the list symbol.voidsetPreSymbol(String preSymbol) Deprecated.Sets the String that has to be added before a number or letter in the list symbol.voidsetSymbolIndent(float symbolIndent) Deprecated.intsize()Deprecated.Gets the size of the list.inttype()Deprecated.Gets the type of the text element.
-
Field Details
-
ORDERED
public static final boolean ORDEREDDeprecated.a possible value for the numbered parameter- See Also:
-
UNORDERED
public static final boolean UNORDEREDDeprecated.a possible value for the numbered parameter- See Also:
-
NUMERICAL
public static final boolean NUMERICALDeprecated.a possible value for the lettered parameter- See Also:
-
ALPHABETICAL
public static final boolean ALPHABETICALDeprecated.a possible value for the lettered parameter- See Also:
-
UPPERCASE
public static final boolean UPPERCASEDeprecated.a possible value for the lettered parameter- See Also:
-
LOWERCASE
public static final boolean LOWERCASEDeprecated.a possible value for the lettered parameter- See Also:
-
list
Deprecated.This is theArrayListcontaining the differentListItems. -
numbered
protected boolean numberedDeprecated.Indicates if the list has to be numbered. -
lettered
protected boolean letteredDeprecated.Indicates if the listsymbols are numerical or alphabetical. -
lowercase
protected boolean lowercaseDeprecated.Indicates if the listsymbols are lowercase or uppercase. -
autoindent
protected boolean autoindentDeprecated.Indicates if the indentation has to be set automatically. -
alignindent
protected boolean alignindentDeprecated.Indicates if the indentation of all the items has to be aligned. -
first
protected int firstDeprecated.This variable indicates the first number of a numbered list. -
symbol
Deprecated.This is the listsymbol of a list that is not numbered. -
preSymbol
Deprecated.In case you are using numbered/lettered lists, this String is added before the number/letter.- Since:
- iText 2.1.1
-
postSymbol
Deprecated.In case you are using numbered/lettered lists, this String is added after the number/letter.- Since:
- iText 2.1.1
-
indentationLeft
protected float indentationLeftDeprecated.The indentation of this list on the left side. -
indentationRight
protected float indentationRightDeprecated.The indentation of this list on the right side. -
symbolIndent
protected float symbolIndentDeprecated.The indentation of the listitems.
-
-
Constructor Details
-
List
public List()Deprecated.Constructs aList. -
List
public List(float symbolIndent) Deprecated.Constructs aListwith a specific symbol indentation.- Parameters:
symbolIndent- the symbol indentation- Since:
- iText 2.0.8
-
List
public List(boolean numbered) Deprecated.Constructs aList.- Parameters:
numbered- a boolean
-
List
public List(boolean numbered, boolean lettered) Deprecated.Constructs aList.- Parameters:
numbered- a booleanlettered- has the list to be 'numbered' with letters
-
List
public List(boolean numbered, float symbolIndent) Deprecated.Constructs aList.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.
- Parameters:
numbered- a booleansymbolIndent- the indentation that has to be used for the listsymbol
-
List
public List(boolean numbered, boolean lettered, float symbolIndent) Deprecated.Creates a list- Parameters:
numbered- has the list to be numbered?lettered- has the list to be 'numbered' with letterssymbolIndent- the indentation of the symbol
-
-
Method Details
-
process
Deprecated.Processes the element by adding it (or the different parts) to anElementListener. -
type
public int type()Deprecated.Gets the type of the text element. -
getChunks
Deprecated.Gets all the chunks in this element. -
add
Deprecated.Adds anElementto theList.- Specified by:
addin interfaceTextElementArray- Parameters:
o- the element to add.- Returns:
- true if adding the element succeeded
-
add
Deprecated.Adds a nestedListto theList.- Parameters:
nested- the nested list to add.- Returns:
- true if adding the nested list succeeded
-
add
Deprecated.Adds aStringto theList.- Parameters:
s- the string to add.- Returns:
- true if adding the string succeeded
-
normalizeIndentation
public void normalizeIndentation()Deprecated.Makes sure all the items in the list have the same indentation. -
setListSymbol
Deprecated.Sets the listsymbol.- Parameters:
symbol- aChunk
-
setListSymbol
Deprecated.Sets the listsymbol.This is a shortcut for
setListSymbol(Chunk symbol).- Parameters:
symbol- aString
-
getItems
Deprecated.Gets all the items in the list.- Returns:
- an
ArrayListcontainingListItems.
-
size
public int size()Deprecated.Gets the size of the list.- Returns:
- a
size
-
isEmpty
public boolean isEmpty()Deprecated.Returnstrueif the list is empty.- Returns:
trueif the list is empty
-
getTotalLeading
public float getTotalLeading()Deprecated.Gets the leading of the first listitem.- Returns:
- a
leading
-
isNumbered
public boolean isNumbered()Deprecated.Checks if the list is numbered.- Returns:
trueif the list is numbered,falseotherwise.
-
setNumbered
public void setNumbered(boolean numbered) Deprecated.- Parameters:
numbered- the numbered to set
-
isLettered
public boolean isLettered()Deprecated.Checks if the list is lettered.- Returns:
trueif the list is lettered,falseotherwise.
-
setLettered
public void setLettered(boolean lettered) Deprecated.- Parameters:
lettered- the lettered to set
-
isLowercase
public boolean isLowercase()Deprecated.Checks if the list lettering is lowercase.- Returns:
trueif it is lowercase,falseotherwise.
-
setLowercase
public void setLowercase(boolean uppercase) Deprecated.- Parameters:
uppercase- the uppercase to set
-
isAutoindent
public boolean isAutoindent()Deprecated.Checks if the indentation of list items is done automatically.- Returns:
- the autoindent
-
setAutoindent
public void setAutoindent(boolean autoindent) Deprecated.- Parameters:
autoindent- the autoindent to set
-
isAlignindent
public boolean isAlignindent()Deprecated.Checks if all the listitems should be aligned.- Returns:
- the alignindent
-
setAlignindent
public void setAlignindent(boolean alignindent) Deprecated.- Parameters:
alignindent- the alignindent to set
-
getFirst
public int getFirst()Deprecated.Gets the first number .- Returns:
- a number
-
setFirst
public void setFirst(int first) Deprecated.Sets the number that has to come first in the list.- Parameters:
first- a number
-
getSymbol
Deprecated.Gets the Chunk containing the symbol.- Returns:
- a Chunk with a symbol
-
getIndentationLeft
public float getIndentationLeft()Deprecated.Gets the indentation of this paragraph on the left side.- Returns:
- the indentation
-
setIndentationLeft
public void setIndentationLeft(float indentation) Deprecated.Sets the indentation of this paragraph on the left side.- Parameters:
indentation- the new indentation
-
getIndentationRight
public float getIndentationRight()Deprecated.Gets the indentation of this paragraph on the right side.- Returns:
- the indentation
-
setIndentationRight
public void setIndentationRight(float indentation) Deprecated.Sets the indentation of this paragraph on the right side.- Parameters:
indentation- the new indentation
-
getSymbolIndent
public float getSymbolIndent()Deprecated.Gets the symbol indentation.- Returns:
- the symbol indentation
-
setSymbolIndent
public void setSymbolIndent(float symbolIndent) Deprecated.- Parameters:
symbolIndent- the symbolIndent to set
-
isContent
public boolean isContent()Deprecated.Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Deprecated.Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-
getPostSymbol
Deprecated.Returns the String that is after a number or letter in the list symbol.- Returns:
- the String that is after a number or letter in the list symbol
- Since:
- iText 2.1.1
-
setPostSymbol
Deprecated.Sets the String that has to be added after a number or letter in the list symbol.- Parameters:
postSymbol- the String that has to be added after a number or letter in the list symbol.- Since:
- iText 2.1.1
-
getPreSymbol
Deprecated.Returns the String that is before a number or letter in the list symbol.- Returns:
- the String that is before a number or letter in the list symbol
- Since:
- iText 2.1.1
-
setPreSymbol
Deprecated.Sets the String that has to be added before a number or letter in the list symbol.- Parameters:
preSymbol- the String that has to be added before a number or letter in the list symbol.- Since:
- iText 2.1.1
-