public class RtfListTable extends RtfElement implements RtfExtendedElement
Modifier and Type | Field and Description |
---|---|
private static byte[] |
LIST_OVERRIDE
Constant for the list override
|
private static byte[] |
LIST_OVERRIDE_COUNT
Constant for the list override count
|
private static byte[] |
LIST_OVERRIDE_TABLE
Constant for the list override table
|
private static byte[] |
LIST_TABLE
Constant for the list table
|
private java.util.ArrayList |
lists
The RtfList lists managed by this RtfListTable
|
private java.util.ArrayList |
picturelists
The RtfPictureList lists managed by this RtfListTable
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Constructor and Description |
---|
RtfListTable(RtfDocument doc)
Constructs a RtfListTable for a RtfDocument
|
Modifier and Type | Method and Description |
---|---|
void |
freeListNumber(RtfList list)
Remove a RtfList from the list of RtfList
|
int |
getListNumber(RtfList list)
Gets the id of the specified RtfList.
|
void |
writeContent(java.io.OutputStream out)
unused
|
void |
writeDefinition(java.io.OutputStream result)
Writes the list and list override tables.
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setInHeader, setInTable, setRtfDocument
private static final byte[] LIST_TABLE
private static final byte[] LIST_OVERRIDE_TABLE
private static final byte[] LIST_OVERRIDE
private static final byte[] LIST_OVERRIDE_COUNT
private java.util.ArrayList lists
private java.util.ArrayList picturelists
public RtfListTable(RtfDocument doc)
doc
- The RtfDocument this RtfListTable belongs topublic void writeContent(java.io.OutputStream out) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
out
- The OutputStream
to write the content tojava.io.IOException
public void writeDefinition(java.io.OutputStream result) throws java.io.IOException
writeDefinition
in interface RtfExtendedElement
result
- The OutputStream
to write the element definition tojava.io.IOException
public int getListNumber(RtfList list)
list
- The RtfList for which to get the id.public void freeListNumber(RtfList list)
list
- The RtfList to remove.