org.jfor.jfor.rtflib.rtfdoc
Class RtfDocumentArea

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.RtfDocumentArea

public class RtfDocumentArea
extends RtfContainer

The RTF document area, container for RtfSection objects.

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
RtfDocumentArea(RtfFile f, java.io.Writer w)
          Create an RTF element as a child of given container
 
Method Summary
 RtfSection newSection()
          close current RtfSection if any and create a new one
 
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, getRtfAttributes, getRtfFile, isClosed, 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
 

Constructor Detail

RtfDocumentArea

RtfDocumentArea(RtfFile f,
                java.io.Writer w)
          throws java.io.IOException
Create an RTF element as a child of given container

Throws:
java.io.IOException
Method Detail

newSection

public RtfSection newSection()
                      throws java.io.IOException
close current RtfSection if any and create a new one

Throws:
java.io.IOException