Class RtfRow
java.lang.Object
com.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.table.RtfRow
- All Implemented Interfaces:
RtfBasicElement
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)
-
Field Summary
Fields inherited from class RtfElement
document, inHeader, inTableFields inherited from interface RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedRtfRow(RtfDocument doc, RtfTable rtfTable, com.lowagie.text.pdf.PdfPRow row, int rowNumber) Constructs a RtfRow for a Row.protectedRtfRow(RtfDocument doc, RtfTable rtfTable, com.lowagie.text.Row row, int rowNumber) Constructs a RtfRow for a Row. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcleanRow()Cleans the deleted RtfCells from the total RtfCells.getCells()Gets the cells of this RtfRowprotected RtfTableGets the parent RtfTable of this RtfRowprotected voidPerforms a second pass over all cells to handle cell row/column spanning.voidwriteContent(OutputStream result) Writes the content of this RtfRowMethods inherited from class RtfElement
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
-
Constructor Details
-
RtfRow
Constructs a RtfRow for a Row.- Parameters:
doc- The RtfDocument this RtfRow belongs tortfTable- The RtfTable this RtfRow belongs torow- The Row this RtfRow is based onrowNumber- 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 tortfTable- The RtfTable this RtfRow belongs torow- The Row this RtfRow is based onrowNumber- The number of this row- Since:
- 2.1.3
-
-
Method Details
-
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
Writes the content of this RtfRow- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
result- TheOutputStreamto write the content to- Throws:
IOException
-
getParentTable
Gets the parent RtfTable of this RtfRow- Returns:
- The parent RtfTable of this RtfRow
-
getCells
-