com.lowagie.text.rtf.table
public class RtfRow extends RtfElement
Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList |
cells
The cells of this RtfRow
|
private RtfTable |
parentTable
The RtfTable this RtfRow belongs to
|
private static byte[] |
ROW_ALIGN_CENTER
Constant for center alignment of this RtfRow
|
private static byte[] |
ROW_ALIGN_JUSTIFIED
Constant for justified alignment of this RtfRow
|
private static byte[] |
ROW_ALIGN_LEFT
Constant for left alignment of this RtfRow
|
private static byte[] |
ROW_ALIGN_RIGHT
Constant for right alignment of this RtfRow
|
private static byte[] |
ROW_BEGIN
Constant for the RtfRow beginning
|
private static byte[] |
ROW_CELL_PADDING_LEFT
Constant for the cell left padding
|
private static byte[] |
ROW_CELL_PADDING_LEFT_STYLE
Constant for the cell left padding style
|
private static byte[] |
ROW_CELL_PADDING_RIGHT
Constant for the cell right padding
|
private static byte[] |
ROW_CELL_PADDING_RIGHT_STYLE
Constant for the cell right padding style
|
private static byte[] |
ROW_CELL_SPACING_BOTTOM
Constant for the cell bottom spacing
|
private static byte[] |
ROW_CELL_SPACING_BOTTOM_STYLE
Constant for the cell bottom spacing style
|
private static byte[] |
ROW_CELL_SPACING_LEFT
Constant for the cell left spacing
|
private static byte[] |
ROW_CELL_SPACING_LEFT_STYLE
Constant for the cell left spacing style
|
private static byte[] |
ROW_CELL_SPACING_RIGHT
Constant for the cell right spacing
|
private static byte[] |
ROW_CELL_SPACING_RIGHT_STYLE
Constant for the cell right spacing style
|
private static byte[] |
ROW_CELL_SPACING_TOP
Constant for the cell top spacing
|
private static byte[] |
ROW_CELL_SPACING_TOP_STYLE
Constant for the cell top spacing style
|
private static byte[] |
ROW_END
Constant for the end of a row
|
private static byte[] |
ROW_GRAPH
Constant for the graph style of this RtfRow
|
private static byte[] |
ROW_HEADER_ROW
Constant to specify that this is a header RtfRow
|
private static byte[] |
ROW_KEEP_TOGETHER
Constant to specify that this RtfRow are not to be broken across pages
|
private static byte[] |
ROW_WIDTH
Constant for the RtfRow width
|
private static byte[] |
ROW_WIDTH_STYLE
Constant for the RtfRow width style
|
private int |
rowNumber
The row number
|
private int |
width
The width of this row
|
document, inHeader, inTable
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
Modifier | Constructor and Description |
---|---|
protected |
RtfRow(RtfDocument doc,
RtfTable rtfTable,
PdfPRow row,
int rowNumber)
Constructs a RtfRow for a Row.
|
protected |
RtfRow(RtfDocument doc,
RtfTable rtfTable,
Row row,
int rowNumber)
Constructs a RtfRow for a Row.
|
Modifier and Type | Method and Description |
---|---|
protected void |
cleanRow()
Cleans the deleted RtfCells from the total RtfCells.
|
protected java.util.ArrayList |
getCells()
Gets the cells of this RtfRow
|
protected RtfTable |
getParentTable()
Gets the parent RtfTable of this RtfRow
|
protected void |
handleCellSpanning()
Performs a second pass over all cells to handle cell row/column spanning.
|
private void |
importRow(PdfPRow row)
Imports a PdfPRow and copies all settings
|
private void |
importRow(Row row)
Imports a Row and copies all settings
|
void |
writeContent(java.io.OutputStream result)
Writes the content of this RtfRow
|
private void |
writeRowDefinition(java.io.OutputStream result)
Writes the row definition/settings.
|
intToByteArray, isInTable, setInHeader, setInTable, setRtfDocument
private static final byte[] ROW_BEGIN
private static final byte[] ROW_WIDTH_STYLE
private static final byte[] ROW_WIDTH
private static final byte[] ROW_KEEP_TOGETHER
private static final byte[] ROW_HEADER_ROW
private static final byte[] ROW_ALIGN_LEFT
private static final byte[] ROW_ALIGN_RIGHT
private static final byte[] ROW_ALIGN_CENTER
private static final byte[] ROW_ALIGN_JUSTIFIED
private static final byte[] ROW_GRAPH
private static final byte[] ROW_CELL_SPACING_LEFT
private static final byte[] ROW_CELL_SPACING_TOP
private static final byte[] ROW_CELL_SPACING_RIGHT
private static final byte[] ROW_CELL_SPACING_BOTTOM
private static final byte[] ROW_CELL_SPACING_LEFT_STYLE
private static final byte[] ROW_CELL_SPACING_TOP_STYLE
private static final byte[] ROW_CELL_SPACING_RIGHT_STYLE
private static final byte[] ROW_CELL_SPACING_BOTTOM_STYLE
private static final byte[] ROW_CELL_PADDING_LEFT
private static final byte[] ROW_CELL_PADDING_RIGHT
private static final byte[] ROW_CELL_PADDING_LEFT_STYLE
private static final byte[] ROW_CELL_PADDING_RIGHT_STYLE
private static final byte[] ROW_END
private RtfTable parentTable
private java.util.ArrayList cells
private int width
private int rowNumber
protected RtfRow(RtfDocument doc, RtfTable rtfTable, Row row, int rowNumber)
doc
- The RtfDocument this RtfRow belongs tortfTable
- The RtfTable this RtfRow belongs torow
- The Row this RtfRow is based onrowNumber
- The number of this rowprotected RtfRow(RtfDocument doc, RtfTable rtfTable, PdfPRow row, int rowNumber)
doc
- The RtfDocument this RtfRow belongs tortfTable
- The RtfTable this RtfRow belongs torow
- The Row this RtfRow is based onrowNumber
- The number of this rowprivate void importRow(Row row)
row
- The Row to importprivate void importRow(PdfPRow row)
row
- The PdfPRow to importprotected void handleCellSpanning()
protected void cleanRow()
private void writeRowDefinition(java.io.OutputStream result) throws java.io.IOException
result
- The OutputStream
to write the definitions to.java.io.IOException
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
result
- The OutputStream
to write the content tojava.io.IOException
protected RtfTable getParentTable()
protected java.util.ArrayList getCells()