Package com.lowagie.text.rtf
Class RtfTable
- java.lang.Object
-
- com.lowagie.text.rtf.RtfTable
-
public class RtfTable extends java.lang.ObjectDeprecated.Please move to the RtfWriter2 and associated classes.A Helper Class for theRtfWriter.Do not use it directly, except if you want to write a
DocumentListenerfor 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
Fields Modifier and Type Field Description private TableorigTableDeprecated.Stores the Table, which this RtfTable is based on.private java.util.ArrayListrowsListDeprecated.Stores the different rows.private RtfWriterwriterDeprecated.Stores the RtfWriter, which created this RtfTable.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected TablegetOriginalTable()Deprecated.This method allows access to the original Table that led to this RtfTable.booleanimportTable(Table table, int pageWidth)Deprecated.Import aTableinto theRtfTable.voidsetMerge(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.booleanwriteTable(java.io.ByteArrayOutputStream os)Deprecated.Output the content of theRtfTableto an OutputStream.
-
-
-
Constructor Detail
-
RtfTable
public RtfTable(RtfWriter writer)
Deprecated.Create a newRtfTable.- Parameters:
writer- TheRtfWriterthat created this Table
-
-
Method Detail
-
importTable
public boolean importTable(Table table, int pageWidth)
Deprecated.Import aTableinto theRtfTable.- Parameters:
table- ATablespecifying theTableto be importedpageWidth- Anintspecifying the page width- Returns:
- true if importing the table succeeded
-
writeTable
public boolean writeTable(java.io.ByteArrayOutputStream os) throws DocumentException, java.io.IOExceptionDeprecated.Output the content of theRtfTableto an OutputStream.- Parameters:
os- TheOutputStreamthat the content of theRtfTableis to be written to- Returns:
- true if writing the table succeeded
- Throws:
DocumentExceptionjava.io.IOException
-
setMerge
public 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.- 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- TheRtfCellthat 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.
-
-