com.lowagie.text.rtf.list

Class RtfListTable

public class RtfListTable extends RtfElement implements RtfExtendedElement

The RtfListTable manages all RtfList objects and list override table in one RtfDocument.

Version: $Id: RtfListTable.java 3580 2008-08-06 15:52:00Z howard_s $

Author: Mark Hall (Mark.Hall@mail.room3b.eu) Howard Shank (hgshank@yahoo.com)

Field Summary
ArrayListlists
The RtfList lists managed by this RtfListTable
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
ArrayListpicturelists
The RtfPictureList lists managed by this RtfListTable
Constructor Summary
RtfListTable(RtfDocument doc)
Constructs a RtfListTable for a RtfDocument
Method Summary
voidfreeListNumber(RtfList list)
Remove a RtfList from the list of RtfList
intgetListNumber(RtfList list)
Gets the id of the specified RtfList.
voidwriteContent(OutputStream out)
unused
voidwriteDefinition(OutputStream result)
Writes the list and list override tables.

Field Detail

lists

private ArrayList lists
The RtfList lists managed by this RtfListTable

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

picturelists

private ArrayList picturelists
The RtfPictureList lists managed by this RtfListTable

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 RtfList

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 RtfList, then it is added.

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

Returns: The id of the RtfList.

writeContent

public void writeContent(OutputStream out)
unused

writeDefinition

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