|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
An RtfElement that can contain other elements.
| Field Summary |
| Fields inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
m_attrib, m_parent, m_writer |
| Constructor Summary | |
(package private) |
RtfContainer(RtfContainer parent,
java.io.Writer w)
Create an RTF container as a child of given container |
(package private) |
RtfContainer(RtfContainer parent,
java.io.Writer w,
RtfAttributes attr)
Create an RTF container as a child of given container with given attributes |
| Method Summary | |
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 |
| Methods inherited from class org.jfor.jfor.rtflib.rtfdoc.RtfElement |
close, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
RtfContainer(RtfContainer parent,
java.io.Writer w)
throws java.io.IOException
RtfContainer(RtfContainer parent,
java.io.Writer w,
RtfAttributes attr)
throws java.io.IOException
| Method Detail |
public 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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||