com.lowagie.text.rtf.list

Class RtfListTable

public class RtfListTable extends RtfElement implements RtfExtendedElement

The RtfListTable manages all RtfLists in one RtfDocument. It also generates the list and list override tables in the document header.

Version: $Id: RtfListTable.java 2776 2007-05-23 20:01:40Z hallm $

Author: Mark Hall (mhall@edu.uni-klu.ac.at) Thomas Bickel (tmb99@inode.at)

Field Summary
ArrayListlists
The RtfLists managed by this RtfListTable
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
protected static byte[]LIST_NUMBER
Constant for the list number
static byte[]LIST_OVERRIDE
Constant for the list override
static byte[]LIST_OVERRIDE_COUNT
Constant for the list override count
static byte[]LIST_OVERRIDE_TABLE
Constant for the list override table
static byte[]LIST_TABLE
Constant for the list table
static byte[]LIST_TEMPLATE_ID
Constant for the list template id
Constructor Summary
RtfListTable(RtfDocument doc)
Constructs a RtfListTable for a RtfDocument
Method Summary
voidfreeListNumber(RtfList list)
Remove a RtfList from the list of RtfLists
intgetListNumber(RtfList list)
Gets the id of the specified RtfList.
byte[]write()
unused
voidwriteContent(OutputStream out)
unused
byte[]writeDefinition()
Writes the list and list override tables.
voidwriteDefinition(OutputStream result)
Writes the list and list override tables.

Field Detail

lists

private ArrayList lists
The RtfLists managed by this RtfListTable

LIST

private static final byte[] LIST
Constant for the list

LIST_HYBRID

private static final byte[] LIST_HYBRID
Constant for the hybrid list

LIST_ID

private static final byte[] LIST_ID
Constant for the list id

LIST_NUMBER

protected static final byte[] LIST_NUMBER
Constant for the list number

LIST_OVERRIDE

private static final byte[] LIST_OVERRIDE
Constant for the list override

LIST_OVERRIDE_COUNT

private static final byte[] LIST_OVERRIDE_COUNT
Constant for the list override count

LIST_OVERRIDE_TABLE

private static final byte[] LIST_OVERRIDE_TABLE
Constant for the list override table

LIST_TABLE

private static final byte[] LIST_TABLE
Constant for the list table

LIST_TEMPLATE_ID

private static final byte[] LIST_TEMPLATE_ID
Constant for the list template id

Constructor Detail

RtfListTable

public RtfListTable(RtfDocument doc)
Constructs a RtfListTable for a RtfDocument

Parameters: doc The RtfDocument this RtfListTable belongs to

Method Detail

freeListNumber

public void freeListNumber(RtfList list)
Remove a RtfList from the list of RtfLists

Parameters: list The RtfList to remove.

getListNumber

public int getListNumber(RtfList list)
Gets the id of the specified RtfList. If the RtfList is not yet in the list of RtfLists, then it is added.

Parameters: list The RtfList for which to get the id.

Returns: The id of the RtfList.

write

public byte[] write()

Deprecated: replaced by writeContent

unused

writeContent

public void writeContent(OutputStream out)
unused

writeDefinition

public byte[] writeDefinition()

Deprecated: replaced by writeDefinition

Writes the list and list override tables.

Returns: A byte array with the list and list override tables.

writeDefinition

public void writeDefinition(OutputStream result)
Writes the list and list override tables.