com.lowagie.text.rtf.list
public class RtfList extends RtfElement implements RtfExtendedElement
Since: 2.1.3
Version: $Id: RtfList.java 3458 2008-05-26 16:19:21Z howard_s $
Field Summary | |
---|---|
ArrayList | items
The subitems of this RtfList |
int | listID
The list id |
ArrayList | listLevels
The RtfList lists managed by this RtfListTable |
int | listNumber
The list number of this RtfList |
int | listType
This RtfList type |
static byte[] | LIST
Constant for the list |
static byte[] | LIST_HYBRID
Constant for the hybrid list |
static byte[] | LIST_ID
Constant for the list id |
static byte[] | LIST_LEVEL_NUMBER
Constant for the list level value |
static byte[] | LIST_NAME
Constant for the name of this list |
static byte[] | LIST_NUMBER
Constant for the list number |
static byte[] | LIST_NUMBER_END
Constant for the old list number end |
static byte[] | LIST_RESTARTHDN
Constant to indicate if the list restarts at each section. |
static byte[] | LIST_SIMPLE
Constant for the simple list |
static byte[] | LIST_STYLEID
Constant for the identifier of the style of this list. |
static byte[] | LIST_STYLENAME
Constant for the identifier of the style of this list. |
static byte[] | LIST_TEMPLATE_ID
Constant for the list template id |
static byte[] | LIST_TEXT
Constant for the old list text |
static int | LIST_TYPE_HYBRID
List type of listhybrid |
static int | LIST_TYPE_NORMAL
List type of NORMAL - no control word |
static int | LIST_TYPE_SIMPLE
List type of listsimple |
String | name
The name of the list if it exists |
RtfList | parentList
The parent list if there is one. |
static byte[] | TAB
Constant for a tab character |
Constructor Summary | |
---|---|
RtfList()
Constructs an empty RtfList object. | |
RtfList(RtfDocument doc)
Constructs an empty RtfList object. | |
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. |
protected void | createDefaultLevels()
Create a default set of listlevels |
int | getID()
Get the list ID number |
RtfListLevel | getListLevel(int index) |
int | getListNumber()
Gets the id of this list
|
int | getListType() |
String | getName() |
RtfList | getParentList() |
void | setDocument(RtfDocument doc)
Set the document. |
void | setID(int id)
Set the list ID number |
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 | setListNumber(int listNumber)
Sets the id of this list
|
void | setListType(int listType) |
void | setName(String name) |
void | setParentList(RtfList parentList) |
void | writeContent(OutputStream result)
Writes the content of the RtfList |
void | writeDefinition(OutputStream result)
Writes the definition part of this list level |
protected void | writeListNumbers(OutputStream result)
Writes only the list number and list level number.
|
protected void | writeListTextBlock(OutputStream result, int itemNr, RtfListLevel listLevel) |
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Parameters: doc The RtfDocument this RtfList belongs to
Since: 2.1.3
Parameters: doc The RtfDocument this RtfList belongs to list The List this RtfList is based on
Since: 2.1.3
Since: 2.1.3
Since: 2.1.3
Returns: this list id
Since: 2.1.3
Returns: the list at the index
Since: 2.1.3
Returns: Returns the list number.
Since: 2.1.3
Returns: the name
Since: 2.1.3
Returns: the parentList
Since: 2.1.3
Parameters: doc The RtfDocument
Since: 2.1.3
Parameters: id
Since: 2.1.3
Parameters: inHeader True
if this RtfList is in a header, false
otherwise
Since: 2.1.3
Parameters: inTable True
if this RtfList is in a table, false
otherwise
Since: 2.1.3
Parameters: listNumber The list number to set.
Since: 2.1.3
Parameters: listType the listType to set
Since: 2.1.3
See Also: LIST_TYPE_NORMAL LIST_TYPE_SIMPLE LIST_TYPE_HYBRID
Parameters: name the name to set
Since: 2.1.3
Parameters: parentList the parentList to set
Since: 2.1.3
Since: 2.1.3
Parameters: result
Throws: IOException
Since: 2.1.3
Parameters: result The OutputStream
to write to
Throws: IOException On i/o errors.
Since: 2.1.3
Parameters: result itemNr listLevel
Throws: IOException
Since: 2.1.3