Class RtfTableOfContents

  • All Implemented Interfaces:
    Element, RtfBasicElement, RtfElementInterface

    public class RtfTableOfContents
    extends RtfField
    The RtfTableOfContents together with multiple RtfTOCEntry objects generates a table of contents. The table of contents will display no entries in the viewing program and the user will have to update it first. A text to inform the user of this is displayed instead.
    Version:
    $Id: RtfTableOfContents.java 3580 2008-08-06 15:52:00Z howard_s $
    Author:
    Mark Hall (Mark.Hall@mail.room3b.eu), Steffen.Stundzig (Steffen.Stundzig@smb-tec.com), Thomas Bickel (tmb99@inode.at)
    • Field Detail

      • FIELD_INST

        private static final java.lang.String FIELD_INST
        field inst content
        See Also:
        Constant Field Values
      • defaultText

        private java.lang.String defaultText
        The default text to display
    • Constructor Detail

      • RtfTableOfContents

        public RtfTableOfContents​(java.lang.String defaultText)
        Constructs a RtfTableOfContents. The default text is the text that is displayed before the user updates the table of contents
        Parameters:
        defaultText - The default text to display
    • Method Detail

      • writeFieldInstContent

        protected void writeFieldInstContent​(java.io.OutputStream result)
                                      throws java.io.IOException
        Writes the field instruction content
        Specified by:
        writeFieldInstContent in class RtfField
        Parameters:
        result - The OutputStream to write to.
        Throws:
        java.io.IOException - on i/o errors.
      • writeFieldResultContent

        protected void writeFieldResultContent​(java.io.OutputStream out)
                                        throws java.io.IOException
        Writes the field result content
        Specified by:
        writeFieldResultContent in class RtfField
        Parameters:
        out - The OutputStream to write to.
        Throws:
        java.io.IOException - on i/o errors.