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, inTable
CLOSE_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.
|
byte[] |
write()
Write this RtfSection and its contents
|
intToByteArray, isInTable, setRtfDocument
protected 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 byte[] write()
write
in interface RtfBasicElement
write
in class RtfElement
public void setInTable(boolean inTable)
setInTable
in interface RtfBasicElement
setInTable
in class RtfElement
inTable
- True
if this RtfSection is in a table, false
otherwisepublic void setInHeader(boolean inHeader)
setInHeader
in interface RtfBasicElement
setInHeader
in class RtfElement
inHeader
- 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.