public class RtfContainer extends RtfElement
An RtfElement that can contain other elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
attrib, parent, writer
Modifier and Type | Method and Description |
---|---|
protected void |
addChild(RtfElement e)
add a child element to this
|
int |
findChildren(RtfElement aChild)
Find the passed child in the current container
|
int |
getChildCount() |
List |
getChildren() |
boolean |
isEmpty() |
protected boolean |
okToWriteRtf()
can be overridden to suppress all RTF output
|
boolean |
setChildren(List list)
Add by Boris Poudérous on 07/22/2002
Set the children list
|
void |
setOptions(RtfOptions opt)
set options
|
String |
toString()
minimal debugging display
|
protected void |
writeRtfContent()
write RTF code of all our children
|
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
public void setOptions(RtfOptions opt)
opt
- options to setprotected void addChild(RtfElement e) throws RtfStructureException
e
- child element to addRtfStructureException
- for trying to add an invalid child (??)public List getChildren()
public int getChildCount()
public int findChildren(RtfElement aChild)
aChild
- the child elementpublic boolean setChildren(List list)
list
- list of child objectsprotected void writeRtfContent() throws IOException
writeRtfContent
in class RtfElement
IOException
- for I/O problemspublic String toString()
toString
in class RtfElement
protected boolean okToWriteRtf()
RtfElement
okToWriteRtf
in class RtfElement
public boolean isEmpty()
isEmpty
in class RtfElement
Copyright © 2025 Apache Software Foundation. All rights reserved.