org.jfor.jfor.rtflib.rtfdoc
Class RtfPageNumber

java.lang.Object
  extended byorg.jfor.jfor.rtflib.rtfdoc.RtfElement
      extended byorg.jfor.jfor.rtflib.rtfdoc.RtfContainer
          extended byorg.jfor.jfor.rtflib.rtfdoc.RtfPageNumber

public class RtfPageNumber
extends RtfContainer


Field Summary
static java.lang.String RTF_FIELD
          RtfText attributes: fields
static java.lang.String RTF_FIELD_PAGE
           
static java.lang.String RTF_FIELD_RESULT
           
 
Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement
m_attrib, m_parent, m_writer
 
Constructor Summary
(package private) RtfPageNumber(IRtfPageNumberContainer parent, java.io.Writer w)
          Create an RTF paragraph as a child of given container with default attributes
(package private) RtfPageNumber(RtfParagraph parent, java.io.Writer w)
          Create an RTF page number as a child of given paragraph, copying the paragraph attributes
 
Method Summary
 boolean isEmpty()
          true if this element would generate no "useful" RTF content
protected  void writeRtfContent()
          write our attributes and content
 
Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfContainer
addChild, containsText, dump, getChildCount, getChildren, getOptions, okToWriteRtf, setChildren, setOptions, toString
 
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
 

Field Detail

RTF_FIELD

public static java.lang.String RTF_FIELD
RtfText attributes: fields


RTF_FIELD_PAGE

public static java.lang.String RTF_FIELD_PAGE

RTF_FIELD_RESULT

public static java.lang.String RTF_FIELD_RESULT
Constructor Detail

RtfPageNumber

RtfPageNumber(IRtfPageNumberContainer parent,
              java.io.Writer w)
        throws java.io.IOException
Create an RTF paragraph as a child of given container with default attributes


RtfPageNumber

RtfPageNumber(RtfParagraph parent,
              java.io.Writer w)
        throws java.io.IOException
Create an RTF page number as a child of given paragraph, copying the paragraph attributes

Method Detail

writeRtfContent

protected void writeRtfContent()
                        throws java.io.IOException
write our attributes and content

Overrides:
writeRtfContent in class RtfContainer
Throws:
java.io.IOException

isEmpty

public boolean isEmpty()
true if this element would generate no "useful" RTF content

Overrides:
isEmpty in class RtfContainer