org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfTable


public class RtfTable
extends RtfContainer

Container for RtfRow elements
Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary

Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

attrib, parent, writer

Method Summary

RtfAttributes
getBorderAttributes()
Returns the RtfAttributes for the borders of the table.
RtfAttributes
getHeaderAttribs()
ITableColumnsInfo
getITableColumnsInfo()
Added by Boris Poudérous on 07/22/2002
int
getNestedTableDepth()
Returns the nested table depth.
RtfTableRow
getRow()
RtfAttributes
getRtfAttributes()
Added by Normand Masse
boolean
isHighestRow(int id)
boolean
isNestedTable()
RtfTableRow
newTableRow()
Close current row if any and start a new one
RtfTableRow
newTableRow(RtfAttributes attrs)
Close current row if any and start a new one
void
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
writeRtfPrefix()
Overridden to write RTF prefix code, what comes before our children
protected void
writeRtfSuffix()
Overridden to write RTF suffix code, what comes after our children

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer

addChild, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

close, getRtfAttributes, isEmpty, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfContent, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS

Method Details

getBorderAttributes

public RtfAttributes getBorderAttributes()
Returns the RtfAttributes for the borders of the table.
Returns:
Border attributes of the table.

getHeaderAttribs

public RtfAttributes getHeaderAttribs()
Returns:
RtfAttributes of Header

getITableColumnsInfo

public ITableColumnsInfo getITableColumnsInfo()
Added by Boris Poudérous on 07/22/2002
Returns:
ITableColumnsInfo for this table

getNestedTableDepth

public int getNestedTableDepth()
Returns the nested table depth.
Returns:
the nested table depth

getRow

public RtfTableRow getRow()
Returns:
Parent row table (for nested tables only)

getRtfAttributes

public RtfAttributes getRtfAttributes()
Added by Normand Masse
Overrides:
getRtfAttributes in interface RtfElement
Returns:
the table-header attributes if they are present, otherwise the parent's attributes are returned normally.

isHighestRow

public boolean isHighestRow(int id)
Parameters:
id - row to check (??)
Returns:
true if id is the highestRow

isNestedTable

public boolean isNestedTable()
Returns:
true if the the table is a nested table

newTableRow

public RtfTableRow newTableRow()
            throws IOException
Close current row if any and start a new one
Returns:
new RtfTableRow

newTableRow

public RtfTableRow newTableRow(RtfAttributes attrs)
            throws IOException
Close current row if any and start a new one
Parameters:
attrs - attributs of new RtfTableRow
Returns:
new RtfTableRow

setBorderAttributes

public void setBorderAttributes(RtfAttributes attributes)
Sets the RtfAttributes for the borders of the table.
Parameters:
attributes - Border attributes of the table.

setHeaderAttribs

public void setHeaderAttribs(RtfAttributes attrs)
Added by Normand Masse Support for table-header attributes (used instead of table attributes)
Parameters:
attrs - attributes to be set

setNestedTableDepth

public void setNestedTableDepth(int nestedTableDepth)
Sets the nested table depth.
Parameters:
nestedTableDepth - the nested table depth

writeRtfPrefix

protected void writeRtfPrefix()
            throws IOException
Overridden to write RTF prefix code, what comes before our children
Overrides:
writeRtfPrefix in interface RtfElement

writeRtfSuffix

protected void writeRtfSuffix()
            throws IOException
Overridden to write RTF suffix code, what comes after our children
Overrides:
writeRtfSuffix in interface RtfElement

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.