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).
attrib, parent, writer
ATTR_CELL_PADDING_BOTTOM, ATTR_CELL_PADDING_LEFT, ATTR_CELL_PADDING_RIGHT, ATTR_CELL_PADDING_TOP, ATTR_CELL_U_PADDING_BOTTOM, ATTR_CELL_U_PADDING_LEFT, ATTR_CELL_U_PADDING_RIGHT, ATTR_CELL_U_PADDING_TOP, ATTR_CELL_VERT_ALIGN_BOTTOM, ATTR_CELL_VERT_ALIGN_CENTER, ATTR_CELL_VERT_ALIGN_TOP, ATTR_HEADER, ATTR_ROW_LEFT_INDENT, ATTR_ROW_PADDING_BOTTOM, ATTR_ROW_PADDING_LEFT, ATTR_ROW_PADDING_RIGHT, ATTR_ROW_PADDING_TOP, ATTR_ROW_U_PADDING_BOTTOM, ATTR_ROW_U_PADDING_LEFT, ATTR_ROW_U_PADDING_RIGHT, ATTR_ROW_U_PADDING_TOP, ATTR_RTF_15_TRGAPH, ATTRIB_CELL_PADDING, ATTRIB_ROW_PADDING, CELL_BORDER, CELL_BORDER_BOTTOM, CELL_BORDER_LEFT, CELL_BORDER_RIGHT, CELL_BORDER_TOP, CELL_COLOR, CELL_COLOR_BACKGROUND, CELL_COLOR_FOREGROUND, CELL_SHADE, CELL_VERT_ALIGN, COLUMN_SPAN, ROW_BORDER, ROW_BORDER_BOTTOM, ROW_BORDER_HORIZONTAL, ROW_BORDER_LEFT, ROW_BORDER_RIGHT, ROW_BORDER_TOP, ROW_BORDER_VERTICAL, ROW_HEIGHT, ROW_KEEP_TOGETHER, ROW_KEEP_WITH_NEXT, ROW_KEEP_WITH_PREVIOUS, ROW_SPAN
Modifier and Type | Method and Description |
---|---|
RtfTable |
getTable() |
boolean |
isFirstRow() |
boolean |
isHighestCell(int cellId) |
RtfTableCell |
newTableCell(int cellWidth)
Close current cell if any and start a new one
|
RtfTableCell |
newTableCell(int cellWidth,
RtfAttributes attrs)
Close current cell if any and start a new one
|
RtfTableCell |
newTableCellMergedHorizontally(int cellWidth,
RtfAttributes attrs)
Added by Boris POUDEROUS on 07/02/2002
in order to add an empty cell that is merged with the previous cell.
|
RtfTableCell |
newTableCellMergedVertically(int cellWidth,
RtfAttributes attrs)
Added by Boris POUDEROUS on 07/02/2002
in order to add an empty cell that is merged with the cell above.
|
void |
writeRowAndCellsDefintions() |
protected void |
writeRtfContent()
Overridden to write trowd and cell definitions before writing our cells
|
protected void |
writeRtfPrefix()
Called before writeRtfContent()
|
protected void |
writeRtfSuffix()
Overridden to write RTF suffix code, what comes after our children
|
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
public RtfTableCell newTableCell(int cellWidth) throws java.io.IOException
cellWidth
- width of new celljava.io.IOException
- for I/O problemspublic RtfTableCell newTableCell(int cellWidth, RtfAttributes attrs) throws java.io.IOException
attrs
- attributes of new cellcellWidth
- width of new celljava.io.IOException
- for I/O problemspublic RtfTableCell newTableCellMergedVertically(int cellWidth, RtfAttributes attrs) throws java.io.IOException
attrs
- attributes of new cellcellWidth
- width of new celljava.io.IOException
- for I/O problemspublic RtfTableCell newTableCellMergedHorizontally(int cellWidth, RtfAttributes attrs) throws java.io.IOException, FOPException
attrs
- attributes of new cellcellWidth
- width of new celljava.io.IOException
- for I/O problemsFOPException
- if attributes cannot be clonedprotected void writeRtfPrefix() throws java.io.IOException
RtfElement
writeRtfPrefix
in class RtfElement
java.io.IOException
- for I/O problemsprotected void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfContainer
java.io.IOException
- for I/O problemspublic void writeRowAndCellsDefintions() throws java.io.IOException
java.io.IOException
- In case of a IO-problemprotected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
- for I/O problemspublic boolean isFirstRow()
public boolean isHighestCell(int cellId)
cellId
- cell id to checkpublic RtfTable getTable()
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.