|
|||||||||
| Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jfor.jfor.rtflib.rtfdoc
Class RtfContainer

java.lang.Objectorg.jfor.jfor.rtflib.rtfdoc.RtfElement
org.jfor.jfor.rtflib.rtfdoc.RtfContainer
- Direct Known Subclasses:
- RtfAfterBeforeBase, RtfBookmarkContainerImpl, RtfDocumentArea, RtfExtraRowSet, RtfFile, RtfHeader, RtfHyperLink, RtfJforCmd, RtfList, RtfListItem, RtfListTable, RtfNull, RtfPage, RtfPageArea, RtfPageNumber, RtfPageNumberCitation, RtfParagraphKeepTogether, RtfSection, RtfTable, RtfTableCell, RtfTableRow
- public class RtfContainer
- extends RtfElement
An RtfElement that can contain other elements.
| Field Summary | |
private java.util.LinkedList |
m_children
|
private RtfElement |
m_lastChild
|
private RtfOptions |
m_options
|
| 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 |
| Field Detail |
m_children
private java.util.LinkedList m_children
m_options
private RtfOptions m_options
m_lastChild
private RtfElement m_lastChild
| Constructor Detail |
RtfContainer
RtfContainer(RtfContainer parent, java.io.Writer w) throws java.io.IOException
- Create an RTF container as a child of given container
RtfContainer
RtfContainer(RtfContainer parent, java.io.Writer w, RtfAttributes attr) throws java.io.IOException
- Create an RTF container as a child of given container with given attributes
| Method Detail |
setOptions
public void setOptions(RtfOptions opt)
- set options
addChild
protected void addChild(RtfElement e) throws org.jfor.jfor.rtflib.exceptions.RtfStructureException
- add a child element to this
getChildren
public java.util.List getChildren()
- return a copy of our children's list
getChildCount
public int getChildCount()
- return the number of children
setChildren
public boolean setChildren(java.util.List children)
- Add by Boris Poudérous on 07/22/2002
Set the children list
writeRtfContent
protected void writeRtfContent()
throws java.io.IOException
- write RTF code of all our children
- Specified by:
writeRtfContentin classRtfElement
getOptions
RtfOptions getOptions()
- return our options
containsText
boolean containsText()
- true if this (recursively) contains at least one RtfText object
dump
void dump(java.io.Writer w, int indent) throws java.io.IOException
- debugging to given Writer
- Overrides:
dumpin classRtfElement
toString
public java.lang.String toString()
- minimal debugging display
- Overrides:
toStringin classRtfElement
okToWriteRtf
protected boolean okToWriteRtf()
- don't write any RTF if empty of if our options block it
- Overrides:
okToWriteRtfin classRtfElement
isEmpty
public boolean isEmpty()
- true if this element would generate no "useful" RTF content.
For an RtfContainer, true if it has no children where isEmpty() is false
- Specified by:
isEmptyin classRtfElement
|
|||||||||
| Home >> All >> org >> jfor >> jfor >> rtflib >> [ rtfdoc overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC