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, writeRtfContent
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeStarControlWord, writeStarControlWordNS
public RtfExternalGraphic newImage() throws java.io.IOException
newImage
in interface IRtfExternalGraphicContainer
java.io.IOException
- for I/O problemspublic RtfParagraph newParagraph(RtfAttributes attrs) throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
attrs
- attributes for new RtfParagraphjava.io.IOException
- for I/O problemspublic RtfParagraph newParagraph() throws java.io.IOException
newParagraph
in interface IRtfParagraphContainer
java.io.IOException
- for I/O problemspublic RtfParagraphKeepTogether newParagraphKeepTogether() throws java.io.IOException
newParagraphKeepTogether
in interface IRtfParagraphKeepTogetherContainer
java.io.IOException
- for I/O problemspublic RtfTable newTable(ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
tc
- Table context used for number-columns-spanned attribute (added by
Boris Poud??rous on july 2002)java.io.IOException
- for I/O problemspublic RtfTable newTable(RtfAttributes attrs, ITableColumnsInfo tc) throws java.io.IOException
newTable
in interface IRtfTableContainer
attrs
- attributes of new RtfTabletc
- Table context used for number-columns-spanned attribute (added by
Boris Poud??rous on july 2002)java.io.IOException
- for I/O problemspublic RtfList newList(RtfAttributes attrs) throws java.io.IOException
newList
in interface IRtfListContainer
attrs
- attributes of new RftList objectjava.io.IOException
- for I/O problemspublic RtfBefore newBefore(RtfAttributes attrs) throws java.io.IOException
newBefore
in interface IRtfBeforeContainer
attrs
- attributes of new RtfBefore objectjava.io.IOException
- for I/O problemspublic RtfAfter newAfter(RtfAttributes attrs) throws java.io.IOException
newAfter
in interface IRtfAfterContainer
attrs
- attributes of new RtfAfter objectjava.io.IOException
- for I/O problemspublic RtfJforCmd newJforCmd(RtfAttributes attrs) throws java.io.IOException
newJforCmd
in interface IRtfJforCmdContainer
attrs
- attributes of new RtfJforCmdjava.io.IOException
- for I/O problemsprotected void writeRtfPrefix() throws java.io.IOException
writeRtfPrefix
in class RtfElement
java.io.IOException
- for I/O problemsprotected void writeRtfSuffix() throws java.io.IOException
writeRtfSuffix
in class RtfElement
java.io.IOException
- for I/O problemspublic RtfTextrun getTextrun() throws java.io.IOException
getTextrun
in interface IRtfTextrunContainer
java.io.IOException
- Thrown when an IO-problem occurs.Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.