Class RtfTable
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.RtfTable
Container for RtfRow elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Field Summary
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Method Summary
Modifier and TypeMethodDescriptionReturns the RtfAttributes for the borders of the table.Added by Boris Poudérous on 07/22/2002int
Returns the nested table depth.getRow()
Added by Normand Masseboolean
isHighestRow
(int id) boolean
Close current row if any and start a new onenewTableRow
(RtfAttributes attrs) Close current row if any and start a new onevoid
setBorderAttributes
(RtfAttributes attributes) Sets the RtfAttributes for the borders of the table.void
setHeaderAttribs
(RtfAttributes attrs) Added by Normand Masse Support for table-header attributes (used instead of table attributes)void
setNestedTableDepth
(int nestedTableDepth) Sets the nested table depth.protected void
Overridden to write RTF prefix code, what comes before our childrenprotected 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, writeRtfContent
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
-
Method Details
-
newTableRow
Close current row if any and start a new one- Returns:
- new RtfTableRow
- Throws:
IOException
- for I/O problems
-
newTableRow
Close current row if any and start a new one- Parameters:
attrs
- attributs of new RtfTableRow- Returns:
- new RtfTableRow
- Throws:
IOException
- for I/O problemsFOPException
- if attributes cannot be cloned
-
writeRtfPrefix
Overridden to write RTF prefix code, what comes before our children- Overrides:
writeRtfPrefix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
writeRtfSuffix
Overridden to write RTF suffix code, what comes after our children- Overrides:
writeRtfSuffix
in classRtfElement
- Throws:
IOException
- for I/O problems
-
isHighestRow
public boolean isHighestRow(int id) - Parameters:
id
- row to check (??)- Returns:
- true if id is the highestRow
-
getITableColumnsInfo
Added by Boris Poudérous on 07/22/2002- Returns:
- ITableColumnsInfo for this table
-
setHeaderAttribs
Added by Normand Masse Support for table-header attributes (used instead of table attributes)- Parameters:
attrs
- attributes to be set
-
getHeaderAttribs
- Returns:
- RtfAttributes of Header
-
getRtfAttributes
Added by Normand Masse- Overrides:
getRtfAttributes
in classRtfElement
- Returns:
- the table-header attributes if they are present, otherwise the parent's attributes are returned normally.
-
isNestedTable
public boolean isNestedTable()- Returns:
- true if the the table is a nested table
-
getRow
- Returns:
- Parent row table (for nested tables only)
-
setNestedTableDepth
public void setNestedTableDepth(int nestedTableDepth) Sets the nested table depth.- Parameters:
nestedTableDepth
- the nested table depth
-
getNestedTableDepth
public int getNestedTableDepth()Returns the nested table depth.- Returns:
- the nested table depth
-
setBorderAttributes
Sets the RtfAttributes for the borders of the table.- Parameters:
attributes
- Border attributes of the table.
-
getBorderAttributes
Returns the RtfAttributes for the borders of the table.- Returns:
- Border attributes of the table.
-