Class RtfRow

  • All Implemented Interfaces:
    RtfBasicElement, com.lowagie.text.RtfElementInterface

    public class RtfRow
    extends RtfElement
    The RtfRow wraps one Row for a RtfTable. INTERNAL USE ONLY
    Version:
    $Id: RtfRow.java 3735 2009-02-26 01:44:03Z xlv $
    Author:
    Mark Hall (Mark.Hall@mail.room3b.eu), Steffen Stundzig, Lorenz Maierhofer, Thomas Bickel (tmb99@inode.at)
    • Constructor Detail

      • RtfRow

        protected RtfRow​(RtfDocument doc,
                         RtfTable rtfTable,
                         com.lowagie.text.Row row,
                         int rowNumber)
        Constructs a RtfRow for a Row.
        Parameters:
        doc - The RtfDocument this RtfRow belongs to
        rtfTable - The RtfTable this RtfRow belongs to
        row - The Row this RtfRow is based on
        rowNumber - The number of this row
      • RtfRow

        protected RtfRow​(RtfDocument doc,
                         RtfTable rtfTable,
                         com.lowagie.text.pdf.PdfPRow row,
                         int rowNumber)
        Constructs a RtfRow for a Row.
        Parameters:
        doc - The RtfDocument this RtfRow belongs to
        rtfTable - The RtfTable this RtfRow belongs to
        row - The Row this RtfRow is based on
        rowNumber - The number of this row
        Since:
        2.1.3
    • Method Detail

      • handleCellSpanning

        protected void handleCellSpanning()
        Performs a second pass over all cells to handle cell row/column spanning.
      • cleanRow

        protected void cleanRow()
        Cleans the deleted RtfCells from the total RtfCells.
      • writeContent

        public void writeContent​(java.io.OutputStream result)
                          throws java.io.IOException
        Writes the content of this RtfRow
        Specified by:
        writeContent in interface RtfBasicElement
        Specified by:
        writeContent in class RtfElement
        Parameters:
        result - The OutputStream to write the content to
        Throws:
        java.io.IOException
      • getParentTable

        protected RtfTable getParentTable()
        Gets the parent RtfTable of this RtfRow
        Returns:
        The parent RtfTable of this RtfRow
      • getCells

        protected java.util.ArrayList<RtfCell> getCells()
        Gets the cells of this RtfRow
        Returns:
        The cells of this RtfRow