Class RtfString
java.lang.Object
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
org.apache.fop.render.rtf.rtflib.rtfdoc.RtfString
Plain text in a RTF file, without any formatings.
This work was authored by Peter Herweg (pherweg@web.de).
-
Field Summary
FieldsFields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
attrib, parent, writer
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement
close, dump, getParentOfClass, getRtfAttributes, getRtfFile, isClosed, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS
-
Field Details
-
text
-
-
Constructor Details
-
RtfString
RtfString(RtfContainer parent, Writer w, String s) throws IOException - Throws:
IOException
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in classRtfElement
- Returns:
- true if this element would generate no "useful" RTF content
-
writeRtfContent
write RTF code of all our children- Specified by:
writeRtfContent
in classRtfElement
- Throws:
IOException
- for I/O problems
-
getText
- Returns:
- the text
-
setText
- Parameters:
s
- some text
-