com.lowagie.text.rtf
public class RtfElement extends Object implements RtfBasicElement
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 |
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
|
byte[] | write()
Returns the content of the RtfElement in a byte array.
|
Parameters: doc The RtfDocument this RtfElement belongs to
Parameters: i The integer to convert
Returns: A byte array representing the integer
Returns: Whether this RtfElement is in a table
Parameters: inHeader True
if this RtfElement is in a header, false
otherwise
Parameters: inTable True
if this RtfElement is in a table, false
otherwise
Parameters: doc The RtfDocument to use
Returns: An empty byte array