org.jfor.jfor.rtflib.rtfdoc
Class RtfPageArea

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

public class RtfPageArea
extends RtfContainer


Field Summary
 
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
m_attrib, m_parent, m_writer
 
Constructor Summary
RtfPageArea(RtfFile f, java.io.Writer w)
          Create an RTF element as a child of given container
 
Method Summary
 RtfPage newPage(RtfAttributes attr)
          close current Rtfpage if any and create a new one
protected  boolean okToWriteRtf()
          don't write any RTF if empty of if our options block it
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, getChildCount, getChildren, getOptions, isEmpty, 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

RtfPageArea

RtfPageArea(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

newPage

public RtfPage newPage(RtfAttributes attr)
                throws java.io.IOException
close current Rtfpage if any and create a new one

Throws:
java.io.IOException

okToWriteRtf

protected boolean okToWriteRtf()
Description copied from class: RtfContainer
don't write any RTF if empty of if our options block it

Overrides:
okToWriteRtf in class RtfContainer