Class RtfPageNumberCitation


  • public class RtfPageNumberCitation
    extends RtfContainer

    Page number citation container.

    This work was authored by Christopher Scott (scottc@westinghouse.com) and Boris Pouderous (boris.pouderous@free.fr).

    • Field Detail

      • RTF_FIELD

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

        public static final java.lang.String RTF_FIELD_PAGEREF_MODEL
        constant for field pageref model
        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
      • id

        private java.lang.String id
    • Constructor Detail

      • RtfPageNumberCitation

        RtfPageNumberCitation​(RtfContainer parent,
                              java.io.Writer w,
                              java.lang.String id)
                       throws java.io.IOException
        Create an RTF page number citation as a child of given container with default attributes
        Throws:
        java.io.IOException
      • RtfPageNumberCitation

        RtfPageNumberCitation​(RtfParagraph parent,
                              java.io.Writer w,
                              java.lang.String id)
                       throws java.io.IOException
        Create an RTF page number citation as a child of given paragraph, copying its attributes
        Throws:
        java.io.IOException
    • Method Detail

      • writeRtfContent

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

        private boolean isValid()
        checks that the 'ref-id' attribute exists
      • isEmpty

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