|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.lowagie.text.rtf.RtfElement
com.lowagie.text.rtf.text.RtfPhrase
com.lowagie.text.rtf.text.RtfParagraph
com.lowagie.text.rtf.list.RtfListItem
public class RtfListItem
The RtfListItem acts as a wrapper for a ListItem.
Field Summary | |
---|---|
private boolean |
containsInnerList
Whether this RtfListItem contains further RtfLists. |
private RtfList |
parentList
The RtfList this RtfListItem belongs to. |
Fields inherited from class com.lowagie.text.rtf.text.RtfParagraph |
---|
PARAGRAPH |
Fields inherited from class com.lowagie.text.rtf.text.RtfPhrase |
---|
chunks, IN_TABLE, LINE_SPACING, PARAGRAPH_DEFAULTS |
Fields inherited from class com.lowagie.text.rtf.RtfElement |
---|
document, inHeader, inTable |
Fields inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
CLOSE_GROUP, COMMA_DELIMITER, DELIMITER, OPEN_GROUP, TWIPS_FACTOR |
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. |
byte[] |
writeDefinition()
Returns the definition of the first list contained in this RtfListItem or an empty byte array if no inner RtfLists exist. |
Methods inherited from class com.lowagie.text.rtf.text.RtfParagraph |
---|
getIndentLeft, getIndentRight, setIndentLeft, setIndentRight, setKeepTogetherWithNext |
Methods inherited from class com.lowagie.text.rtf.text.RtfPhrase |
---|
setInHeader, setInTable, setRtfDocument |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private RtfList parentList
private boolean containsInnerList
Constructor Detail |
---|
public RtfListItem(RtfDocument doc, ListItem listItem)
doc
- The RtfDocument this RtfListItem belongs to.listItem
- The ListItem this RtfListItem is based on.Method Detail |
---|
public byte[] write()
write
in interface RtfBasicElement
write
in class RtfParagraph
public byte[] writeDefinition()
public void inheritListSettings(int listNumber, int listLevel)
listNumber
- The list number to inherit.listLevel
- The list level to inherit.protected void correctIndentation()
public void setParent(RtfList parentList)
parentList
- The parent RtfList to use.public boolean isContainsInnerList()
|
![]() |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |