com.lowagie.text.rtf
Class RtfTable
java.lang.Object
com.lowagie.text.rtf.RtfTable
Deprecated. Please move to the RtfWriter2 and associated classes.
public class RtfTable
- extends Object
A Helper Class for the 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
Field Summary |
private Table |
origTable
Deprecated. Stores the Table, which this RtfTable is based on. |
private ArrayList |
rowsList
Deprecated. Stores the different rows. |
private RtfWriter |
writer
Deprecated. Stores the RtfWriter, which created this RtfTable. |
Method Summary |
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. RtfCell s call this method to specify that a certain other cell is to be merged with it. |
boolean |
writeTable(ByteArrayOutputStream os)
Deprecated. Output the content of the RtfTable to an OutputStream. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
rowsList
private ArrayList rowsList
- Deprecated.
- Stores the different rows.
writer
private RtfWriter writer
- Deprecated.
- Stores the RtfWriter, which created this RtfTable.
origTable
private Table origTable
- Deprecated.
- Stores the Table, which this RtfTable is based on.
RtfTable
public RtfTable(RtfWriter writer)
- Deprecated.
- Create a new
RtfTable
.
- Parameters:
writer
- The RtfWriter
that created this Table
importTable
public boolean importTable(Table table,
int pageWidth)
- Deprecated.
- Import a
Table
into the RtfTable
.
- Parameters:
table
- A Table
specifying the Table
to be importedpageWidth
- An int
specifying the page width
- Returns:
- true if importing the table succeeded
writeTable
public boolean writeTable(ByteArrayOutputStream os)
throws DocumentException,
IOException
- Deprecated.
- Output the content of the
RtfTable
to an OutputStream.
- Parameters:
os
- The OutputStream
that the content of the RtfTable
is to be written to
- Returns:
- true if writing the table succeeded
- Throws:
DocumentException
IOException
setMerge
public void setMerge(int x,
int y,
int mergeType,
RtfCell mergeCell)
- Deprecated.
RtfCell
s call this method to specify that a certain other cell is to be merged with it.
- Parameters:
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 with
getOriginalTable
protected Table getOriginalTable()
- Deprecated.
- This method allows access to the original Table that led to this RtfTable.
- Returns:
- The Table object that is the basis of this RtfTable.