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
- version:
$ - Id:RtfElement.java 3126 2008-02-07 20:30:46Z hallm $
- author:
Mark - Hall (Mark.Hall@mail.room3b.eu)
- author:
Thomas - Bickel (tmb99@inode.at)
| 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) {
super();
this.document = doc;
}
Constructs a RtfElement belonging to the specified RtfDocument. Parameters:
doc - The RtfDocument this RtfElement belongs to
|
| Method from com.lowagie.text.rtf.RtfElement Detail: |
public byte[] intToByteArray(int i) {
return Integer.toString(i).getBytes();
}
Transforms an integer into its String representation and then returns the bytes
of that string. |
public boolean isInTable() {
return inTable;
}
Gets whether this RtfElement is in a table |
public void setInHeader(boolean inHeader) {
this.inHeader = inHeader;
}
Sets whether this RtfElement is in a header |
public void setInTable(boolean inTable) {
this.inTable = inTable;
}
Sets whether this RtfElement is in a table |
public void setRtfDocument(RtfDocument doc) {
this.document = 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. |