|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfTable
public class RtfTable
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. |
Constructor Summary | |
---|---|
RtfTable(RtfWriter writer)
Deprecated. Create a new 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 |
Field Detail |
---|
private ArrayList rowsList
private RtfWriter writer
private Table origTable
Constructor Detail |
---|
public RtfTable(RtfWriter writer)
RtfTable
.
writer
- The RtfWriter
that created this TableMethod Detail |
---|
public boolean importTable(Table table, int pageWidth)
Table
into the RtfTable
.
table
- A Table
specifying the Table
to be importedpageWidth
- An int
specifying the page width
public boolean writeTable(ByteArrayOutputStream os) throws DocumentException, IOException
RtfTable
to an OutputStream.
os
- The OutputStream
that the content of the RtfTable
is to be written to
DocumentException
IOException
public void setMerge(int x, int y, int mergeType, RtfCell mergeCell)
RtfCell
s 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()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |