public class RtfSection extends RtfElement
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList |
items
The sub-items of this RtfSection
|
protected RtfParagraph |
title
The title paragraph of this RtfSection
|
document, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfSection(RtfDocument doc,
Section section)
Constructs a RtfSection for a given Section.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setInHeader(boolean inHeader)
Sets whether this RtfSection is in a header.
|
void |
setInTable(boolean inTable)
Sets whether this RtfSection is in a table.
|
private void |
updateIndentation(float indentLeft,
float indentRight,
float indentContent)
Updates the left, right and content indentation of all RtfParagraph and RtfSection
elements that this RtfSection contains.
|
void |
writeContent(java.io.OutputStream result)
Write this RtfSection and its contents
|
intToByteArray, isInTable, setRtfDocumentprotected RtfParagraph title
protected java.util.ArrayList items
public RtfSection(RtfDocument doc, Section section)
doc - The RtfDocument this RtfSection belongs tosection - The Section this RtfSection is based onpublic void writeContent(java.io.OutputStream result)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content tojava.io.IOExceptionpublic void setInTable(boolean inTable)
setInTable in interface RtfBasicElementsetInTable in class RtfElementinTable - True if this RtfSection is in a table, false otherwisepublic void setInHeader(boolean inHeader)
setInHeader in interface RtfBasicElementsetInHeader in class RtfElementinHeader - True if this RtfSection is in a header, false otherwiseprivate void updateIndentation(float indentLeft,
float indentRight,
float indentContent)
indentLeft - The left indentation to add.indentRight - The right indentation to add.indentContent - The content indentation to add.