## 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 java.lang.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 java.util.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(java.io.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

### rowsList

    private java.util.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.

Constructor Detail

### RtfTable

    public RtfTable(RtfWriter writer)

  Deprecated.
  Create a new `RtfTable`.

  Parameters:
    `writer` - The `RtfWriter` that created this Table

Method Detail

### importTable

    public boolean importTable(Table table,
                               int pageWidth)

  Deprecated.
  Import a `Table` into the `RtfTable`.

  Parameters:
    `table` - A `Table` specifying the `Table` to be imported
    `pageWidth` - An `int` specifying the page width
  Returns:
    true if importing the table succeeded

### writeTable

    public boolean writeTable(java.io.ByteArrayOutputStream os)
                       throws DocumentException,
                              java.io.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`
    `java.io.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 merged
    `y` - The row position of the cell to be merged
    `mergeType` - 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.