fop 2.0

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

java.lang.Object
  extended by org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
      extended by org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
          extended by org.apache.fop.render.rtf.rtflib.rtfdoc.RtfExtraRowSet

public class RtfExtraRowSet
extends RtfContainer

Used to add extra table rows after a row that contains a nested table:

See org.apache.fop.rtf.rtflib.testdocs.NestedTable for an example of usage.

This work was authored by Bertrand Delacretaz ([email protected]).


Field Summary
 
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
 
Method Summary
 ITableColumnsInfo getParentITableColumnsInfo()
           
 boolean isEmpty()
          As this contains cells from several rows, we say that it's empty only if we have no cells.
 void setParentITableColumnsInfo(ITableColumnsInfo parentITableColumnsInfo)
           
protected  void writeRtfContent()
          render extra RtfTableRows containing all the extra RtfTableCells that we contain
 
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
addChild, findChildren, getChildCount, getChildren, 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, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

writeRtfContent

protected void writeRtfContent()
                        throws java.io.IOException
render extra RtfTableRows containing all the extra RtfTableCells that we contain

Overrides:
writeRtfContent in class RtfContainer
Throws:
java.io.IOException - for I/O problems

isEmpty

public boolean isEmpty()
As this contains cells from several rows, we say that it's empty only if we have no cells. writeRow makes the decision about rendering specific rows

Overrides:
isEmpty in class RtfContainer
Returns:
false (always)

getParentITableColumnsInfo

public ITableColumnsInfo getParentITableColumnsInfo()
Returns:
The table context of the parent table Added by Boris Poudérous on july 2002 in order to process nested tables

setParentITableColumnsInfo

public void setParentITableColumnsInfo(ITableColumnsInfo parentITableColumnsInfo)
Parameters:
parentITableColumnsInfo - table context to set

fop 2.0

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