public class RtfSection extends RtfContainer implements IRtfParagraphContainer, IRtfTableContainer, IRtfListContainer, IRtfExternalGraphicContainer, IRtfBeforeContainer, IRtfParagraphKeepTogetherContainer, IRtfAfterContainer, IRtfJforCmdContainer, IRtfTextrunContainer
Models a section in an RTF document
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
attrib, parent, writer| Modifier and Type | Method and Description |
|---|---|
RtfTextrun |
getTextrun()
Returns the current RtfTextrun.
|
RtfAfter |
newAfter(RtfAttributes attrs)
IRtfAfterContainer
|
RtfBefore |
newBefore(RtfAttributes attrs)
IRtfBeforeContainer
|
RtfExternalGraphic |
newImage()
Start a new external graphic after closing current paragraph, list and table
|
RtfJforCmd |
newJforCmd(RtfAttributes attrs) |
RtfList |
newList(RtfAttributes attrs)
Start a new list after closing current paragraph, list and table
|
RtfParagraph |
newParagraph()
Close current paragraph if any and start a new one with default attributes
|
RtfParagraph |
newParagraph(RtfAttributes attrs)
Start a new paragraph after closing current paragraph, list and table
|
RtfParagraphKeepTogether |
newParagraphKeepTogether()
Close current paragraph if any and start a new one
|
RtfTable |
newTable(ITableColumnsInfo tc)
Start a new table after closing current paragraph, list and table
|
RtfTable |
newTable(RtfAttributes attrs,
ITableColumnsInfo tc)
Start a new table after closing current paragraph, list and table
|
protected void |
writeRtfPrefix()
Can be overridden to write RTF prefix code, what comes before our children
|
protected void |
writeRtfSuffix()
Can be overridden to write RTF suffix code, what comes after our children
|
addChild, findChildren, getChildCount, getChildren, isEmpty, okToWriteRtf, setChildren, setOptions, toString, writeRtfContentclose, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNSpublic RtfExternalGraphic newImage() throws IOException
newImage in interface IRtfExternalGraphicContainerIOException - for I/O problemspublic RtfParagraph newParagraph(RtfAttributes attrs) throws IOException
newParagraph in interface IRtfParagraphContainerattrs - attributes for new RtfParagraphIOException - for I/O problemspublic RtfParagraph newParagraph() throws IOException
newParagraph in interface IRtfParagraphContainerIOException - for I/O problemspublic RtfParagraphKeepTogether newParagraphKeepTogether() throws IOException
newParagraphKeepTogether in interface IRtfParagraphKeepTogetherContainerIOException - for I/O problemspublic RtfTable newTable(ITableColumnsInfo tc) throws IOException
newTable in interface IRtfTableContainertc - Table context used for number-columns-spanned attribute (added by
Boris Poudérous on july 2002)IOException - for I/O problemspublic RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws IOException
newTable in interface IRtfTableContainerattrs - attributes of new RtfTabletc - Table context used for number-columns-spanned attribute (added by
Boris Poudérous on july 2002)IOException - for I/O problemspublic RtfList newList(RtfAttributes attrs) throws IOException
newList in interface IRtfListContainerattrs - attributes of new RftList objectIOException - for I/O problemspublic RtfBefore newBefore(RtfAttributes attrs) throws IOException
newBefore in interface IRtfBeforeContainerattrs - attributes of new RtfBefore objectIOException - for I/O problemspublic RtfAfter newAfter(RtfAttributes attrs) throws IOException
newAfter in interface IRtfAfterContainerattrs - attributes of new RtfAfter objectIOException - for I/O problemspublic RtfJforCmd newJforCmd(RtfAttributes attrs) throws IOException
newJforCmd in interface IRtfJforCmdContainerattrs - attributes of new RtfJforCmdIOException - for I/O problemsprotected void writeRtfPrefix()
throws IOException
writeRtfPrefix in class RtfElementIOException - for I/O problemsprotected void writeRtfSuffix()
throws IOException
writeRtfSuffix in class RtfElementIOException - for I/O problemspublic RtfTextrun getTextrun() throws IOException
getTextrun in interface IRtfTextrunContainerIOException - Thrown when an IO-problem occurs.Copyright © 2025 Apache Software Foundation. All rights reserved.