com.lowagie.text.rtf.list
Class RtfListTable

java.lang.Object
  extended by com.lowagie.text.rtf.RtfElement
      extended by com.lowagie.text.rtf.list.RtfListTable
All Implemented Interfaces:
RtfBasicElement, RtfExtendedElement

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:
$Version:$
Author:
Mark Hall (mhall@edu.uni-klu.ac.at)

Field Summary
protected static byte[] LIST_NUMBER
          Constant for the list number
 
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
 
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
 
Constructor Summary
RtfListTable(RtfDocument doc)
          Constructs a RtfListTable for a RtfDocument
 
Method Summary
 void freeListNumber(RtfList list)
          Remove a RtfList from the list of RtfLists
 int getListNumber(RtfList list)
          Gets the id of the specified RtfList.
 byte[] writeDefinition()
          Writes the list and list override tables.
 
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement
setInHeader, setInTable, setRtfDocument, write
 

Field Detail

LIST_NUMBER

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

Constructor Detail

RtfListTable

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

Parameters:
doc - The RtfDocument this RtfListTable belongs to
Method Detail

writeDefinition

public byte[] writeDefinition()
Writes the list and list override tables.

Specified by:
writeDefinition in interface RtfExtendedElement
Returns:
A byte array with the list and list override tables.

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.

freeListNumber

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

Parameters:
list - The RtfList to remove.


Copyright © 2006-2007 EGIZ - E-Government Innovationszentrum. All Rights Reserved.