|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.lowagie.text.rtf.RtfElement
public abstract class RtfElement
RtfElement is the base class for all RTF Element classes
| Field Summary | |
|---|---|
protected RtfDocument |
document
The RtfDocument this RtfElement belongs to |
protected boolean |
inHeader
Whether this RtfElement is in a header |
protected boolean |
inTable
Whether this RtfElement is in a table |
| Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
|---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
| Constructor Summary | |
|---|---|
RtfElement(RtfDocument doc)
Constructs a RtfElement belonging to the specified RtfDocument. |
|
| Method Summary | |
|---|---|
byte[] |
intToByteArray(int i)
Transforms an integer into its String representation and then returns the bytes of that string. |
boolean |
isInTable()
Gets whether this RtfElement is in a table |
void |
setInHeader(boolean inHeader)
Sets whether this RtfElement is in a header |
void |
setInTable(boolean inTable)
Sets whether this RtfElement is in a table |
void |
setRtfDocument(RtfDocument doc)
Sets the RtfDocument this RtfElement belongs to |
abstract byte[] |
write()
Deprecated. As of iText 2.0.6 or earlier, replaced by writeContent(OutputStream), scheduled for removal at or after 2.1.0 |
void |
writeContent(OutputStream out)
Writes the element content to the given output stream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected RtfDocument document
protected boolean inTable
protected boolean inHeader
| Constructor Detail |
|---|
public RtfElement(RtfDocument doc)
doc - The RtfDocument this RtfElement belongs to| Method Detail |
|---|
public byte[] intToByteArray(int i)
i - The integer to convert
public abstract byte[] write()
writeContent(OutputStream), scheduled for removal at or after 2.1.0
write in interface RtfBasicElement
public void writeContent(OutputStream out)
throws IOException
writeContent in interface RtfBasicElementIOExceptionpublic void setRtfDocument(RtfDocument doc)
setRtfDocument in interface RtfBasicElementdoc - The RtfDocument to usepublic boolean isInTable()
public void setInTable(boolean inTable)
setInTable in interface RtfBasicElementinTable - True if this RtfElement is in a table, false otherwisepublic void setInHeader(boolean inHeader)
setInHeader in interface RtfBasicElementinHeader - True if this RtfElement is in a header, false otherwise
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||