public class RtfTable
extends java.lang.Object
RtfWriter.
Do not use it directly, except if you want to write a DocumentListener for Rtf
ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2.
Parts of this Class were contributed by Steffen Stundzig. Many thanks for the
improvements.
Updates Benoit WIART
| Modifier and Type | Field and Description |
|---|---|
private Table |
origTable
Deprecated.
Stores the Table, which this RtfTable is based on.
|
private java.util.ArrayList |
rowsList
Deprecated.
Stores the different rows.
|
private RtfWriter |
writer
Deprecated.
Stores the RtfWriter, which created this RtfTable.
|
| Constructor and Description |
|---|
RtfTable(RtfWriter writer)
Deprecated.
Create a new
RtfTable. |
| Modifier and Type | Method and Description |
|---|---|
protected Table |
getOriginalTable()
Deprecated.
This method allows access to the original Table that led to this RtfTable.
|
boolean |
importTable(Table table,
int pageWidth)
Deprecated.
Import a
Table into the RtfTable. |
void |
setMerge(int x,
int y,
int mergeType,
RtfCell mergeCell)
Deprecated.
RtfCells call this method to specify that a certain other cell is to be merged with it. |
boolean |
writeTable(java.io.ByteArrayOutputStream os)
Deprecated.
Output the content of the
RtfTable to an OutputStream. |
private java.util.ArrayList rowsList
private RtfWriter writer
private Table origTable
public RtfTable(RtfWriter writer)
RtfTable.writer - The RtfWriter that created this Tablepublic boolean importTable(Table table, int pageWidth)
Table into the RtfTable.
table - A Table specifying the Table to be importedpageWidth - An int specifying the page widthpublic boolean writeTable(java.io.ByteArrayOutputStream os)
throws DocumentException,
java.io.IOException
RtfTable to an OutputStream.os - The OutputStream that the content of the RtfTable is to be written toDocumentExceptionjava.io.IOExceptionpublic void setMerge(int x,
int y,
int mergeType,
RtfCell mergeCell)
RtfCells call this method to specify that a certain other cell is to be merged with it.x - The column position of the cell to be mergedy - The row position of the cell to be mergedmergeType - The merge type specifies the kind of merge to be applied (MERGE_HORIZ_PREV, MERGE_VERT_PREV, MERGE_BOTH_PREV)mergeCell - The RtfCell that the cell at x and y is to be merged withprotected Table getOriginalTable()