Class RtfContainer
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfContainer
- Direct Known Subclasses:
RtfAfter
,RtfBefore
,RtfBookmarkContainerImpl
,RtfDocumentArea
,RtfExtraRowSet
,RtfFile
,RtfFootnote
,RtfHyperLink
,RtfJforCmd
,RtfLeader
,RtfList
,RtfListItem
,RtfListTable
,RtfNull
,RtfPage
,RtfPageArea
,RtfPageNumber
,RtfPageNumberCitation
,RtfParagraphKeepTogether
,RtfSection
,RtfTable
,RtfTableCell
,RtfTableRow
,RtfTextrun
An RtfElement that can contain other elements.
This work was authored by Bertrand Delacretaz (bdelacretaz@codeconsult.ch).
-
Field Summary
Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
add a child element to thisint
findChildren
(RtfElement aChild) Find the passed child in the current containerint
boolean
isEmpty()
protected boolean
can be overridden to suppress all RTF outputboolean
setChildren
(List list) Add by Boris Poudérous on 07/22/2002 Set the children listvoid
setOptions
(RtfOptions opt) set optionstoString()
minimal debugging displayprotected void
write RTF code of all our childrenMethods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, getParentOfClass, getRtfAttributes, newLine, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Method Details
-
setOptions
set options- Parameters:
opt
- options to set
-
addChild
add a child element to this- Parameters:
e
- child element to add- Throws:
RtfStructureException
- for trying to add an invalid child (??)
-
getChildren
- Returns:
- a copy of our children's list
-
getChildCount
public int getChildCount()- Returns:
- the number of children
-
findChildren
Find the passed child in the current container- Parameters:
aChild
- the child element- Returns:
- the depth (nested level) inside the current container
-
setChildren
Add by Boris Poudérous on 07/22/2002 Set the children list- Parameters:
list
- list of child objects- Returns:
- true if process succeeded
-
writeRtfContent
write RTF code of all our children- Specified by:
writeRtfContent
in classRtfElement
- Throws:
IOException
- for I/O problems
-
toString
minimal debugging display- Overrides:
toString
in classRtfElement
- Returns:
- String representation of object contents
-
okToWriteRtf
protected boolean okToWriteRtf()Description copied from class:RtfElement
can be overridden to suppress all RTF output- Overrides:
okToWriteRtf
in classRtfElement
- Returns:
- false if empty or if our options block writing
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classRtfElement
- Returns:
- true if this element would generate no "useful" RTF content, i.e. (for RtfContainer) true if it has no children where isEmpty() is false
-