org.jfor.jfor.rtflib.rtfdoc
Class RtfTable

java.lang.Object
  extended by org.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended by org.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended by org.jfor.jfor.rtflib.rtfdoc.RtfTable

public class RtfTable
extends RtfContainer

Container for RtfRow elements

Author:
Bertrand Delacretaz bdelacretaz@codeconsult.ch

Field Summary
 
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
m_attrib, m_parent, m_writer
 
Constructor Summary
RtfTable(IRtfTableContainer parent, java.io.Writer w, ITableColumnsInfo tc)
          Create an RTF element as a child of given container
RtfTable(IRtfTableContainer parent, java.io.Writer w, RtfAttributes attrs, ITableColumnsInfo tc)
          Create an RTF element as a child of given container Modified by Boris Poud?rous in order to process 'number-columns-spanned' attribute
 
Method Summary
 ITableColumnsInfo getITableColumnsInfo()
          Added by Boris Poud?rous on 07/22/2002
 RtfAttributes getRtfAttributes()
           
 boolean isHighestRow(int id)
           
 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 setHeaderAttribs(RtfAttributes attrs)
           
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.jfor.jfor.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContent
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RtfTable

RtfTable(IRtfTableContainer parent,
         java.io.Writer w,
         ITableColumnsInfo tc)
   throws java.io.IOException
Create an RTF element as a child of given container

Throws:
java.io.IOException

RtfTable

RtfTable(IRtfTableContainer parent,
         java.io.Writer w,
         RtfAttributes attrs,
         ITableColumnsInfo tc)
   throws java.io.IOException
Create an RTF element as a child of given container Modified by Boris Poud?rous in order to process 'number-columns-spanned' attribute

Throws:
java.io.IOException
Method Detail

newTableRow

public RtfTableRow newTableRow()
                        throws java.io.IOException
close current row if any and start a new one

Throws:
java.io.IOException

newTableRow

public RtfTableRow newTableRow(RtfAttributes attrs)
                        throws java.io.IOException
close current row if any and start a new one

Throws:
java.io.IOException

writeRtfPrefix

protected void writeRtfPrefix()
                       throws java.io.IOException
overridden to write RTF prefix code, what comes before our children

Overrides:
writeRtfPrefix in class RtfElement
Throws:
java.io.IOException

writeRtfSuffix

protected void writeRtfSuffix()
                       throws java.io.IOException
overridden to write RTF suffix code, what comes after our children

Overrides:
writeRtfSuffix in class RtfElement
Throws:
java.io.IOException

isHighestRow

public boolean isHighestRow(int id)

getITableColumnsInfo

public ITableColumnsInfo getITableColumnsInfo()
Added by Boris Poud?rous on 07/22/2002


setHeaderAttribs

public void setHeaderAttribs(RtfAttributes attrs)

getRtfAttributes

public RtfAttributes getRtfAttributes()
Overrides:
getRtfAttributes in class RtfElement