org.apache.fop.render.rtf.rtflib.rtfdoc

Class RtfString


public class RtfString
extends RtfElement

Plain text in a RTF file, without any formatings.
Author:
Peter Herweg, pherweg@web.de

Field Summary

Fields inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

attrib, parent, writer

Method Summary

String
getText()
boolean
isEmpty()
void
setText(String s)
protected void
writeRtfContent()
write RTF code of all our children

Methods inherited from class org.apache.fop.render.rtf.rtflib.rtfdoc.RtfElement

close, getRtfAttributes, isEmpty, newLine, okToWriteRtf, toString, writeAttributes, writeControlWord, writeControlWordNS, writeExceptionInRtf, writeGroupMark, writeOneAttribute, writeOneAttributeNS, writeRtf, writeRtfContent, writeRtfPrefix, writeRtfSuffix, writeStarControlWord, writeStarControlWordNS

Method Details

getText

public String getText()

isEmpty

public boolean isEmpty()
Overrides:
isEmpty in interface RtfElement
Returns:
true if this element would generate no "useful" RTF content

setText

public void setText(String s)

writeRtfContent

protected void writeRtfContent()
            throws IOException
write RTF code of all our children
Overrides:
writeRtfContent in interface RtfElement

Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.