public class RtfContainer extends RtfElement
m_attrib, m_parent, m_writer| Constructor and Description |
|---|
RtfContainer(RtfContainer parent,
java.io.Writer w)
Create an RTF container as a child of given container
|
RtfContainer(RtfContainer parent,
java.io.Writer w,
RtfAttributes attr)
Create an RTF container as a child of given container with given attributes
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addChild(RtfElement e)
add a child element to this
|
(package private) boolean |
containsText()
true if this (recursively) contains at least one RtfText object
|
(package private) void |
dump(java.io.Writer w,
int indent)
debugging to given Writer
|
int |
getChildCount()
return the number of children
|
java.util.List |
getChildren()
return a copy of our children's list
|
(package private) RtfOptions |
getOptions()
return our options
|
boolean |
isEmpty()
true if this element would generate no "useful" RTF content.
|
protected boolean |
okToWriteRtf()
don't write any RTF if empty of if our options block it
|
boolean |
setChildren(java.util.List children)
Add by Boris Poud?rous on 07/22/2002
Set the children list
|
void |
setOptions(RtfOptions opt)
set options
|
java.lang.String |
toString()
minimal debugging display
|
protected void |
writeRtfContent()
write RTF code of all our children
|
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNSRtfContainer(RtfContainer parent, java.io.Writer w) throws java.io.IOException
java.io.IOExceptionRtfContainer(RtfContainer parent, java.io.Writer w, RtfAttributes attr) throws java.io.IOException
java.io.IOExceptionpublic void setOptions(RtfOptions opt)
protected void addChild(RtfElement e) throws RtfStructureException
RtfStructureExceptionpublic java.util.List getChildren()
public int getChildCount()
public boolean setChildren(java.util.List children)
protected void writeRtfContent()
throws java.io.IOException
writeRtfContent in class RtfElementjava.io.IOExceptionRtfOptions getOptions()
boolean containsText()
void dump(java.io.Writer w,
int indent)
throws java.io.IOException
dump in class RtfElementjava.io.IOExceptionpublic java.lang.String toString()
toString in class RtfElementprotected boolean okToWriteRtf()
okToWriteRtf in class RtfElementpublic boolean isEmpty()
isEmpty in class RtfElement