|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.text.RtfSection
public class RtfSection
The RtfSection wraps a Section element. INTERNAL CLASS
Field Summary | |
---|---|
protected java.util.ArrayList |
items
The sub-items of this RtfSection |
protected RtfParagraph |
title
The 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 | |
---|---|
RtfSection(RtfDocument doc,
Section section)
Constructs a RtfSection for a given Section. |
Method Summary | |
---|---|
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()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream) , scheduled for removal at or after 2.1.0 |
void |
writeContent(java.io.OutputStream result)
Write this RtfSection and its contents |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected RtfParagraph title
protected java.util.ArrayList items
Constructor Detail |
---|
public RtfSection(RtfDocument doc, Section section)
doc
- The RtfDocument this RtfSection belongs tosection
- The Section this RtfSection is based onMethod Detail |
---|
public byte[] write()
writeContent(OutputStream)
, scheduled for removal at or after 2.1.0
write
in interface RtfBasicElement
write
in class RtfElement
public void writeContent(java.io.OutputStream result) throws java.io.IOException
writeContent
in interface RtfBasicElement
writeContent
in class RtfElement
java.io.IOException
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.
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |