Package com.lowagie.text.rtf
Class RtfTOCEntry
- java.lang.Object
-
- com.lowagie.text.Chunk
-
- com.lowagie.text.rtf.RtfTOCEntry
-
public class RtfTOCEntry extends Chunk implements RtfField
Deprecated.Please move to the RtfWriter2 and associated classes. com.lowagie.text.rtf.field.RtfTOCEntry replaces the functionality of this class.This class can be used to insert entries for a table of contents into the RTF document. ONLY FOR USE WITH THE RtfWriter NOT with the RtfWriter2. This class is based on the RtfWriter-package from Mark Hall.- Version:
- $Revision: 1.1 $Date: 2009/08/28 20:31:00 $
- Author:
- Steffen.Stundzig@smb-tec.com
-
-
Field Summary
Fields Modifier and Type Field Description private FontcontentFontDeprecated.private FontentryFontDeprecated.private java.lang.StringentryNameDeprecated.private booleanhidePageNumberDeprecated.private booleanhideTextDeprecated.-
Fields inherited from class com.lowagie.text.Chunk
ACTION, attributes, BACKGROUND, COLOR, content, ENCODING, font, GENERICTAG, HSCALE, HYPHENATION, IMAGE, LOCALDESTINATION, LOCALGOTO, NEWLINE, NEWPAGE, NEXTPAGE, OBJECT_REPLACEMENT_CHARACTER, PDFANNOTATION, REMOTEGOTO, SEPARATOR, SKEW, SPLITCHARACTER, SUBSUPSCRIPT, TAB, TEXTRENDERMODE, UNDERLINE
-
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK
-
-
Constructor Summary
Constructors Constructor Description RtfTOCEntry(java.lang.String content, Font contentFont)Deprecated.Constructs an entry for the Table of ContentsRtfTOCEntry(java.lang.String content, Font contentFont, java.lang.String entryName, Font entryFont)Deprecated.Constructs an entry for the Table of Contents
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidhidePageNumber()Deprecated.sets the hidePageNumber value to truevoidhideText()Deprecated.sets the hideText value to truevoidwrite(RtfWriter writer, java.io.OutputStream out)Deprecated.Writes an RTF field.private voidwriteField(java.io.OutputStream out)Deprecated.-
Methods inherited from class com.lowagie.text.Chunk
append, getAttributes, getChunks, getContent, getFont, getHorizontalScaling, getHyphenation, getImage, getTextRise, getWidthPoint, hasAttributes, isContent, isEmpty, isNestable, process, setAction, setAnchor, setAnchor, setAnnotation, setAttributes, setBackground, setBackground, setFont, setGenericTag, setHorizontalScaling, setHyphenation, setLocalDestination, setLocalGoto, setNewPage, setRemoteGoto, setRemoteGoto, setSkew, setSplitCharacter, setTextRenderMode, setTextRise, setUnderline, setUnderline, toString, type
-
-
-
-
Constructor Detail
-
RtfTOCEntry
public RtfTOCEntry(java.lang.String content, Font contentFont)Deprecated.Constructs an entry for the Table of Contents- Parameters:
content- the content of the entrycontentFont- the font
-
RtfTOCEntry
public RtfTOCEntry(java.lang.String content, Font contentFont, java.lang.String entryName, Font entryFont)Deprecated.Constructs an entry for the Table of Contents- Parameters:
content- the content of the entrycontentFont- the fontentryName- name of the entryentryFont- font of the entryname
-
-
Method Detail
-
write
public void write(RtfWriter writer, java.io.OutputStream out) throws java.io.IOException
Deprecated.Description copied from interface:RtfFieldWrites an RTF field.- Specified by:
writein interfaceRtfField- Throws:
java.io.IOException- See Also:
RtfField.write(com.lowagie.text.rtf.RtfWriter, java.io.OutputStream)
-
writeField
private void writeField(java.io.OutputStream out) throws java.io.IOExceptionDeprecated.- Throws:
java.io.IOException
-
hideText
public void hideText()
Deprecated.sets the hideText value to true
-
hidePageNumber
public void hidePageNumber()
Deprecated.sets the hidePageNumber value to true
-
-