RtfAfter
, RtfBefore
, RtfBookmarkContainerImpl
, RtfDocumentArea
, RtfExtraRowSet
, RtfFile
, RtfFootnote
, RtfHyperLink
, RtfJforCmd
, RtfLeader
, RtfList
, RtfListItem
, RtfListTable
, RtfNull
, RtfPage
, RtfPageArea
, RtfPageNumber
, RtfPageNumberCitation
, RtfParagraphKeepTogether
, RtfSection
, RtfTable
, RtfTableCell
, RtfTableRow
, RtfTextrun
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 | 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() |
|
java.util.List |
getChildren() |
|
boolean |
isEmpty() |
|
protected boolean |
okToWriteRtf() |
can be overridden to suppress all RTF output
|
boolean |
setChildren(java.util.List list) |
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
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
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 java.util.List getChildren()
public int getChildCount()
public int findChildren(RtfElement aChild)
aChild
- the child elementpublic boolean setChildren(java.util.List list)
list
- list of child objectsprotected void writeRtfContent() throws java.io.IOException
writeRtfContent
in class RtfElement
java.io.IOException
- for I/O problemspublic java.lang.String toString()
toString
in class RtfElement
protected boolean okToWriteRtf()
RtfElement
okToWriteRtf
in class RtfElement
public boolean isEmpty()
isEmpty
in class RtfElement
Copyright 1999-2016 The Apache Software Foundation. All Rights Reserved.