com.lowagie.text.rtf.list
public class RtfList extends RtfElement implements RtfExtendedElement
Version: $Id: RtfList.java 2825 2007-06-04 09:15:21Z blowagie $
Field Summary | |
---|---|
int | alignment
The alignment of this RtfList |
String | bulletCharacter
The text to use as the bullet character |
int | firstIndent
The first indentation of this RtfList |
RtfFont | fontBullet
The RtfFont for bulleted lists |
RtfFont | fontNumber
The RtfFont for numbered lists |
ArrayList | items
The subitems of this RtfList |
int | leftIndent
The left indentation of this RtfList |
int | listLevel
The level of this RtfList |
int | listNumber
The list number of this RtfList |
int | listType
Whether this RtfList is numbered |
static byte[] | LIST_BULLET
Constant for the old bulleted list |
static byte[] | LIST_LEVEL
Constant for list level |
static byte[] | LIST_LEVEL_ALIGNMENT
Constant for list level alignment old |
static byte[] | LIST_LEVEL_ALIGNMENT_NEW
Constant for list level alignment new |
static byte[] | LIST_LEVEL_FIRST_INDENT
Constant for the first indentation |
static byte[] | LIST_LEVEL_NUMBER
Constant for the list level value |
static byte[] | LIST_LEVEL_NUMBERS_BEGIN
Constant for the beginning of the list level numbers |
static byte[] | LIST_LEVEL_NUMBERS_END
Constant for the end of the list level numbers |
static byte[] | LIST_LEVEL_NUMBERS_NUMBERED
Constant for the list level numbers |
static byte[] | LIST_LEVEL_START_AT
Constant for list level start at |
static byte[] | LIST_LEVEL_STYLE_BULLETED_BEGIN
Constant for the beginning of the list level bulleted style |
static byte[] | LIST_LEVEL_STYLE_BULLETED_END
Constant for the end of the list level bulleted style |
static byte[] | LIST_LEVEL_STYLE_NUMBERED_BEGIN
Constant for the beginning of the list level numbered style |
static byte[] | LIST_LEVEL_STYLE_NUMBERED_END
Constant for the end of the list level numbered style |
static byte[] | LIST_LEVEL_SYMBOL_INDENT
Constant for the symbol indentation |
static byte[] | LIST_LEVEL_TEXT
Constant for list level text |
static byte[] | LIST_LEVEL_TYPE
Constant for list level style old |
static byte[] | LIST_LEVEL_TYPE_NEW
Constant for list level style new |
static byte[] | LIST_NUMBER_END
Constant for the old list number end |
static byte[] | LIST_TEXT
Constant for the old list text |
static int | LIST_TYPE_BULLET |
static int | LIST_TYPE_LOWER_LETTERS |
static int | LIST_TYPE_LOWER_ROMAN |
static int | LIST_TYPE_NUMBERED |
static int | LIST_TYPE_UPPER_LETTERS |
static int | LIST_TYPE_UPPER_ROMAN |
RtfList | parentList
The parent List in multi-level lists. |
int | rightIndent
The right indentation of this RtfList |
int | symbolIndent
The symbol indentation of this RtfList |
static byte[] | TAB
Constant for a tab character |
Constructor Summary | |
---|---|
RtfList(RtfDocument doc, List list)
Constructs a new RtfList for the specified List.
|
Method Summary | |
---|---|
protected void | correctIndentation()
Correct the indentation of this RtfList by adding left/first line indentation
from the parent RtfList. |
int | getFirstIndent()
Get the first line indentation of this RtfList.
|
int | getLeftIndent()
Get the left indentation of this RtfList.
|
int | getListLevel()
Gets the list level of this RtfList
|
int | getListNumber()
Gets the id of this list
|
void | setInHeader(boolean inHeader)
Sets whether this RtfList is in a header. |
void | setInTable(boolean inTable)
Sets whether this RtfList is in a table. |
void | setListLevel(int listLevel)
Sets the list level of this RtfList. |
void | setListNumber(int listNumber)
Sets the id of this list
|
protected void | setParent(RtfList parent)
Sets the parent RtfList of this RtfList
|
byte[] | write()
Writes the content of the RtfList
|
void | writeContent(OutputStream result)
Writes the content of the RtfList |
byte[] | writeDefinition()
Writes the definition part of this list level
|
void | writeDefinition(OutputStream result)
Writes the definition part of this list level |
byte[] | writeIndentations() |
void | writeIndentations(OutputStream result) |
protected byte[] | writeListBeginning()
Writes the initialisation part of the RtfList
|
protected byte[] | writeListNumbers()
Writes only the list number and list level number.
|
Parameters: doc The RtfDocument this RtfList belongs to list The List this RtfList is based on
Returns: The first line indentation.
Returns: The left indentation.
Returns: Returns the list level.
Returns: Returns the list number.
Parameters: inHeader True
if this RtfList is in a header, false
otherwise
Parameters: inTable True
if this RtfList is in a table, false
otherwise
Parameters: listLevel The list level to set.
Parameters: listNumber The list number to set.
Parameters: parent The parent RtfList to use.
Deprecated: replaced by writeContent
Writes the content of the RtfListReturns: A byte array containing the actual content of the RtfList
Deprecated: replaced by writeDefinition
Writes the definition part of this list levelReturns: A byte array containing the definition of this list level
Deprecated:
Returns: a byte array
Returns: A byte array containing the initialisation part
Returns: The list number and list level number of this RtfList.