Class RtfPageNumber


  • public class RtfPageNumber
    extends RtfContainer

    Page number container.

    This work was authored by Christopher Scott (scottc@westinghouse.com).

    • Field Detail

      • RTF_FIELD

        public static final java.lang.String RTF_FIELD
        constant for field
        See Also:
        Constant Field Values
      • RTF_FIELD_PAGE

        public static final java.lang.String RTF_FIELD_PAGE
        constant for field on page
        See Also:
        Constant Field Values
      • RTF_FIELD_RESULT

        public static final java.lang.String RTF_FIELD_RESULT
        constant for field result
        See Also:
        Constant Field Values
    • 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
        Throws:
        java.io.IOException
      • RtfPageNumber

        RtfPageNumber​(RtfContainer parent,
                      java.io.Writer w,
                      RtfAttributes attrs)
               throws java.io.IOException
        Create an RTF page number as a child of given container with given attributes
        Throws:
        java.io.IOException
      • 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
        Throws:
        java.io.IOException
    • Method Detail

      • writeRtfContent

        protected void writeRtfContent()
                                throws java.io.IOException
        Write our attributes and content
        Overrides:
        writeRtfContent in class RtfContainer
        Throws:
        java.io.IOException - for I/O problems
      • isEmpty

        public boolean isEmpty()
        Overrides:
        isEmpty in class RtfContainer
        Returns:
        true if this element would generate no "useful" RTF content