Class RtfTableRow
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfTableRow
- All Implemented Interfaces:
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).
-
Field Summary
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
Fields inherited from interface org.apache.fop.render.rtf.rtflib.rtfdoc.ITableAttributes
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
-
Method Summary
Modifier and TypeMethodDescriptiongetTable()
boolean
boolean
isHighestCell
(int cellId) newTableCell
(int cellWidth) Close current cell if any and start a new onenewTableCell
(int cellWidth, RtfAttributes attrs) Close current cell if any and start a new onenewTableCellMergedHorizontally
(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.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
protected void
Overridden to write trowd and cell definitions before writing our cellsprotected void
Called before writeRtfContent()protected void
Overridden to write RTF suffix code, what comes after our childrenMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Method Details
-
newTableCell
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
Close current cell if any and start a new one- Parameters:
attrs
- attributes of new cellcellWidth
- 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 cellcellWidth
- 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 cellcellWidth
- width of new cell- Returns:
- new RtfTableCell
- Throws:
IOException
- for I/O problemsFOPException
- if attributes cannot be cloned
-
writeRtfPrefix
Description copied from class:RtfElement
Called before writeRtfContent()- Overrides:
writeRtfPrefix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
writeRtfContent
Overridden to write trowd and cell definitions before writing our cells- Overrides:
writeRtfContent
in classRtfContainer
- Throws:
IOException
- for I/O problems
-
writeRowAndCellsDefintions
- Throws:
IOException
- In case of a IO-problem
-
writeRtfSuffix
Overridden to write RTF suffix code, what comes after our children- Overrides:
writeRtfSuffix
in classRtfElement
- 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
- Returns:
- Parent table of the row.
-