org.jfor.jfor.rtflib.rtfdoc
Class RtfDocumentArea

java.lang.Object
  extended byorg.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended byorg.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended byorg.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
(package private) 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

Method Detail

newSection

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

Throws:
java.io.IOException