Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » rtf » [javadoc | source]
com.lowagie.text.rtf
abstract public class: RtfElement [javadoc | source]
java.lang.Object
   com.lowagie.text.rtf.RtfElement

All Implemented Interfaces:
    RtfBasicElement

Direct Known Subclasses:
    RtfPictureList, RtfStylesheetList, RtfFontList, RtfParagraph, RtfAnnotation, RtfListItem, RtfListLevel, RtfNewPage, RtfColorList, RtfSection, RtfPageSetting, RtfList, RtfListTable, RtfImage, RtfInfoElement, RtfDocument, RtfProtectionSetting, RtfPhrase, RtfDocumentHeader, RtfBorder, RtfGenerator, RtfChapter, RtfInfoGroup, RtfChunk, RtfRow, RtfBorderGroup, RtfColor, RtfTable, RtfCodePage

RtfElement is the base class for all RTF Element classes
Field Summary
protected  RtfDocument document    The RtfDocument this RtfElement belongs to 
protected  boolean inTable    Whether this RtfElement is in a table 
protected  boolean inHeader    Whether this RtfElement is in a header 
Constructor:
 public RtfElement(RtfDocument doc) 
    Constructs a RtfElement belonging to the specified RtfDocument.
    Parameters:
    doc - The RtfDocument this RtfElement belongs to
Method from com.lowagie.text.rtf.RtfElement Summary:
intToByteArray,   isInTable,   setInHeader,   setInTable,   setRtfDocument,   writeContent
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.rtf.RtfElement Detail:
 public byte[] intToByteArray(int i) 
    Transforms an integer into its String representation and then returns the bytes of that string.
 public boolean isInTable() 
    Gets whether this RtfElement is in a table
 public  void setInHeader(boolean inHeader) 
    Sets whether this RtfElement is in a header
 public  void setInTable(boolean inTable) 
    Sets whether this RtfElement is in a table
 public  void setRtfDocument(RtfDocument doc) 
    Sets the RtfDocument this RtfElement belongs to
 abstract public  void writeContent(OutputStream out) throws IOException
    Writes the element content to the given output stream.