Package com.lowagie.text.rtf.list
Class RtfListTable
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.list.RtfListTable
- All Implemented Interfaces:
RtfBasicElement
,RtfExtendedElement
,com.lowagie.text.RtfElementInterface
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 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
Constant for the list overrideprivate static final byte[]
Constant for the list override countprivate static final byte[]
Constant for the list override tableprivate static final byte[]
Constant for the list tableThe RtfList lists managed by this RtfListTableprivate final List
<RtfPictureList> The RtfPictureList lists managed by this RtfListTableFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
freeListNumber
(RtfList list) Remove a RtfList from the list of RtfListint
getListNumber
(RtfList list) Gets the id of the specified RtfList.void
writeContent
(OutputStream out) unusedvoid
writeDefinition
(OutputStream result) Writes the list and list override tables.Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
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
-
Field Details
-
LIST_TABLE
private static final byte[] LIST_TABLEConstant for the list table -
LIST_OVERRIDE_TABLE
private static final byte[] LIST_OVERRIDE_TABLEConstant for the list override table -
LIST_OVERRIDE
private static final byte[] LIST_OVERRIDEConstant for the list override -
LIST_OVERRIDE_COUNT
private static final byte[] LIST_OVERRIDE_COUNTConstant for the list override count -
lists
The RtfList lists managed by this RtfListTable -
picturelists
The RtfPictureList lists managed by this RtfListTable
-
-
Constructor Details
-
RtfListTable
Constructs a RtfListTable for a RtfDocument- Parameters:
doc
- The RtfDocument this RtfListTable belongs to
-
-
Method Details
-
writeContent
unused- Specified by:
writeContent
in interfaceRtfBasicElement
- Specified by:
writeContent
in classRtfElement
- Parameters:
out
- TheOutputStream
to write the content to- Throws:
IOException
-
writeDefinition
Writes the list and list override tables.- Specified by:
writeDefinition
in interfaceRtfExtendedElement
- Parameters:
result
- TheOutputStream
to write the element definition to- Throws:
IOException
-
getListNumber
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.
-
freeListNumber
Remove a RtfList from the list of RtfList- Parameters:
list
- The RtfList to remove.
-