com.lowagie.text.rtf.field

Class RtfTableOfContents

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 3373 2008-05-12 16:21:24Z xlv $

Author: Mark Hall (Mark.Hall@mail.room3b.eu) Steffen.Stundzig (Steffen.Stundzig@smb-tec.com) Thomas Bickel (tmb99@inode.at)

Field Summary
StringdefaultText
The default text to display
static StringFIELD_INST
field inst content
Constructor Summary
RtfTableOfContents(String defaultText)
Constructs a RtfTableOfContents.
Method Summary
protected voidwriteFieldInstContent(OutputStream result)
Writes the field instruction content
protected voidwriteFieldResultContent(OutputStream out)
Writes the field result content

Field Detail

defaultText

private String defaultText
The default text to display

FIELD_INST

private static final String FIELD_INST
field inst content

Constructor Detail

RtfTableOfContents

public RtfTableOfContents(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(OutputStream result)
Writes the field instruction content

Parameters: result The OutputStream to write to.

Throws: IOException on i/o errors.

writeFieldResultContent

protected void writeFieldResultContent(OutputStream out)
Writes the field result content

Parameters: out The OutputStream to write to.

Throws: IOException on i/o errors.