Class RtfTableRow

All Implemented Interfaces:
ITableAttributes

public class RtfTableRow extends RtfContainer implements ITableAttributes

Container for RtfTableCell elements.

This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch), Andreas Putz (a.putz@skynamics.com), and Roberto Marra (roberto@link-u.com).

  • Method Details

    • newTableCell

      public RtfTableCell newTableCell(int cellWidth) throws IOException
      Close current cell if any and start a new one
      Parameters:
      cellWidth - width of new cell
      Returns:
      new RtfTableCell
      Throws:
      IOException - for I/O problems
    • newTableCell

      public RtfTableCell newTableCell(int cellWidth, RtfAttributes attrs) throws IOException
      Close current cell if any and start a new one
      Parameters:
      attrs - attributes of new cell
      cellWidth - width of new cell
      Returns:
      new RtfTableCell
      Throws:
      IOException - for I/O problems
    • newTableCellMergedVertically

      public RtfTableCell newTableCellMergedVertically(int cellWidth, RtfAttributes attrs) throws IOException
      Added by Boris POUDEROUS on 07/02/2002 in order to add an empty cell that is merged with the cell above. This cell is placed before or after the nested table.
      Parameters:
      attrs - attributes of new cell
      cellWidth - width of new cell
      Returns:
      new RtfTableCell
      Throws:
      IOException - for I/O problems
    • newTableCellMergedHorizontally

      public RtfTableCell newTableCellMergedHorizontally(int cellWidth, RtfAttributes attrs) throws IOException, FOPException
      Added by Boris POUDEROUS on 07/02/2002 in order to add an empty cell that is merged with the previous cell.
      Parameters:
      attrs - attributes of new cell
      cellWidth - width of new cell
      Returns:
      new RtfTableCell
      Throws:
      IOException - for I/O problems
      FOPException - if attributes cannot be cloned
    • writeRtfPrefix

      protected void writeRtfPrefix() throws IOException
      Description copied from class: RtfElement
      Called before writeRtfContent()
      Overrides:
      writeRtfPrefix in class RtfElement
      Throws:
      IOException - for I/O problems
    • writeRtfContent

      protected void writeRtfContent() throws IOException
      Overridden to write trowd and cell definitions before writing our cells
      Overrides:
      writeRtfContent in class RtfContainer
      Throws:
      IOException - for I/O problems
    • writeRowAndCellsDefintions

      public void writeRowAndCellsDefintions() throws IOException
      Throws:
      IOException - In case of a IO-problem
    • writeRtfSuffix

      protected void writeRtfSuffix() throws IOException
      Overridden to write RTF suffix code, what comes after our children
      Overrides:
      writeRtfSuffix in class RtfElement
      Throws:
      IOException - for I/O problems
    • isFirstRow

      public boolean isFirstRow()
      Returns:
      true if the row is the first in the table
    • isHighestCell

      public boolean isHighestCell(int cellId)
      Parameters:
      cellId - cell id to check
      Returns:
      true if the cell is the highest cell
    • getTable

      public RtfTable getTable()
      Returns:
      Parent table of the row.