public class RtfListItem extends RtfParagraph
| Modifier and Type | Field and Description |
|---|---|
private boolean |
containsInnerList
Whether this RtfListItem contains further RtfLists.
|
private int |
level |
private RtfListLevel |
parentList
The RtfList this RtfListItem belongs to.
|
PARAGRAPH, paragraphStylechunks, IN_TABLE, LINE_SPACING, PARAGRAPH_DEFAULTS, PLAINdocument, inHeader, inTableCLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR| Constructor and Description |
|---|
RtfListItem(RtfDocument doc,
ListItem listItem)
Constructs a RtfListItem for a ListItem belonging to a RtfDocument.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
correctIndentation()
Correct the indentation of RtfLists in this RtfListItem by adding left/first line indentation
from the parent RtfList.
|
int |
getLevel() |
RtfListLevel |
getParent()
Set 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 |
setLevel(int level) |
void |
setParent(RtfListLevel parentList)
Set the parent RtfList.
|
void |
writeContent(java.io.OutputStream result)
Writes the content of this RtfListItem.
|
boolean |
writeDefinition(java.io.OutputStream out)
|
getIndentLeft, getIndentRight, setIndentLeft, setIndentRight, setKeepTogetherWithNextsetInHeader, setInTable, setRtfDocumentintToByteArray, isInTableprivate RtfListLevel parentList
private boolean containsInnerList
private int level
public RtfListItem(RtfDocument doc, ListItem listItem)
doc - The RtfDocument this RtfListItem belongs to.listItem - The ListItem this RtfListItem is based on.public void writeContent(java.io.OutputStream result)
throws java.io.IOException
writeContent in interface RtfBasicElementwriteContent in class RtfParagraphresult - The OutputStream to write the content tojava.io.IOExceptionpublic boolean writeDefinition(java.io.OutputStream out)
throws java.io.IOException
RtfList to the given stream.RtfList element nothing is written
and the method returns false.out - destination streamtrue if a RtfList definition was written, false otherwisejava.io.IOExceptionpublic void inheritListSettings(int listNumber,
int listLevel)
listNumber - The list number to inherit.listLevel - The list level to inherit.protected void correctIndentation()
public void setParent(RtfListLevel parentList)
parentList - The parent RtfList to use.public RtfListLevel getParent()
public boolean isContainsInnerList()
public int getLevel()
public void setLevel(int level)
level - the level to set