com.lowagie.text.rtf.list
public class RtfListItem extends RtfParagraph
Version: $Id: RtfListItem.java 2811 2007-05-31 18:51:52Z hallm $
Field Summary | |
---|---|
boolean | containsInnerList
Whether this RtfListItem contains further RtfLists. |
RtfList | parentList
The RtfList this RtfListItem belongs to. |
Constructor Summary | |
---|---|
RtfListItem(RtfDocument doc, ListItem listItem)
Constructs a RtfListItem for a ListItem belonging to a RtfDocument.
|
Method Summary | |
---|---|
protected void | correctIndentation()
Correct the indentation of RtfLists in this RtfListItem by adding left/first line indentation
from the parent RtfList. |
void | inheritListSettings(int listNumber, int listLevel)
Inherit the list settings from the parent list to RtfLists that
are contained in this RtfListItem.
|
boolean | isContainsInnerList()
Gets whether this RtfListItem contains further RtfLists.
|
void | setParent(RtfList parentList)
Set the parent RtfList.
|
byte[] | write()
Writes the content of this RtfListItem.
|
void | writeContent(OutputStream result)
Writes the content of this RtfListItem. |
byte[] | writeDefinition()
Returns the definition of the first list contained in this RtfListItem or
an empty byte array if no inner RtfLists exist.
|
boolean | writeDefinition(OutputStream out) |
Parameters: doc The RtfDocument this RtfListItem belongs to. listItem The ListItem this RtfListItem is based on.
Parameters: listNumber The list number to inherit. listLevel The list level to inherit.
Returns: Whether this RtfListItem contains further RtfLists.
Parameters: parentList The parent RtfList to use.
Deprecated: replaced by writeContent
Writes the content of this RtfListItem.Returns: A byte array with the content of this RtfListItem.
Deprecated: replaced by writeDefinition
Returns the definition of the first list contained in this RtfListItem or an empty byte array if no inner RtfLists exist.Returns: The definition of the first inner RtfList or an empty byte array.
false
.
Parameters: out destination stream
Returns: true
if a RtfList definition was written, false
otherwise
Throws: IOException