Package com.lowagie.text.rtf.text
Class RtfSection
- java.lang.Object
-
- com.lowagie.text.rtf.RtfElement
-
- com.lowagie.text.rtf.text.RtfSection
-
- All Implemented Interfaces:
RtfBasicElement,com.lowagie.text.RtfElementInterface
- Direct Known Subclasses:
RtfChapter
public class RtfSection extends RtfElement
The RtfSection wraps a Section element. INTERNAL CLASS- Version:
- $Id: RtfSection.java 3373 2008-05-12 16:21:24Z xlv $
- Author:
- Mark Hall (Mark.Hall@mail.room3b.eu), Thomas Bickel (tmb99@inode.at)
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.ArrayList<RtfBasicElement>itemsThe sub-items of this RtfSectionprotected RtfParagraphtitleThe title paragraph of this RtfSection-
Fields inherited from class com.lowagie.text.rtf.RtfElement
document, inHeader, inTable
-
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR
-
-
Constructor Summary
Constructors Constructor Description RtfSection(RtfDocument doc, com.lowagie.text.Section section)Constructs a RtfSection for a given Section.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetInHeader(boolean inHeader)Sets whether this RtfSection is in a header.voidsetInTable(boolean inTable)Sets whether this RtfSection is in a table.voidwriteContent(java.io.OutputStream result)Write this RtfSection and its contents-
Methods inherited from class com.lowagie.text.rtf.RtfElement
intToByteArray, isInTable, setRtfDocument
-
-
-
-
Field Detail
-
title
protected RtfParagraph title
The title paragraph of this RtfSection
-
items
protected final java.util.ArrayList<RtfBasicElement> items
The sub-items of this RtfSection
-
-
Constructor Detail
-
RtfSection
public RtfSection(RtfDocument doc, com.lowagie.text.Section section)
Constructs a RtfSection for a given Section. If the autogenerateTOCEntries property of the RtfDocument is set and the title is not empty then a TOC entry is generated for the title.- Parameters:
doc- The RtfDocument this RtfSection belongs tosection- The Section this RtfSection is based on
-
-
Method Detail
-
writeContent
public void writeContent(java.io.OutputStream result) throws java.io.IOExceptionWrite this RtfSection and its contents- Specified by:
writeContentin interfaceRtfBasicElement- Specified by:
writeContentin classRtfElement- Parameters:
result- TheOutputStreamto write the content to- Throws:
java.io.IOException
-
setInTable
public void setInTable(boolean inTable)
Sets whether this RtfSection is in a table. Sets the correct inTable setting for all child elements.- Specified by:
setInTablein interfaceRtfBasicElement- Overrides:
setInTablein classRtfElement- Parameters:
inTable-Trueif this RtfSection is in a table,falseotherwise
-
setInHeader
public void setInHeader(boolean inHeader)
Sets whether this RtfSection is in a header. Sets the correct inTable setting for all child elements.- Specified by:
setInHeaderin interfaceRtfBasicElement- Overrides:
setInHeaderin classRtfElement- Parameters:
inHeader-Trueif this RtfSection is in a header,falseotherwise
-
-