|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfTable
A Helper Class for the RtfWriter
.
Do not use it directly, except if you want to write a DocumentListener
for Rtf
Parts of this Class were contributed by Steffen Stundzig. Many thanks for the
improvements.
Field Summary | |
private Table |
origTable
Stores the Table, which this RtfTable is based on. |
private ArrayList |
rowsList
Stores the different rows. |
private RtfWriter |
writer
Stores the RtfWriter, which created this RtfTable. |
Constructor Summary | |
RtfTable(RtfWriter writer)
Create a new RtfTable . |
Method Summary | |
protected Table |
getOriginalTable()
This method allows access to the original Table that led to this RtfTable. |
boolean |
importTable(Table table,
int pageWidth)
Import a Table into the RtfTable . |
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. |
boolean |
writeTable(ByteArrayOutputStream os)
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 widthpublic 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 |