|
||||||||||
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.list.RtfList
public class RtfList
The RtfList stores one List. It also provides the methods to write the list declaration and the list data.
Field Summary |
---|
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 | |
---|---|
RtfList(RtfDocument doc,
List list)
Constructs a new RtfList for the specified List. |
Method Summary | |
---|---|
protected void |
correctIndentation()
Correct the indentation of this RtfList by adding left/first line indentation from the parent RtfList. |
int |
getListLevel()
Gets the list level of this RtfList |
int |
getListNumber()
Gets the id of this list |
void |
setInHeader(boolean inHeader)
Sets whether this RtfList is in a header. |
void |
setInTable(boolean inTable)
Sets whether this RtfList is in a table. |
void |
setListLevel(int listLevel)
Sets the list level of this RtfList. |
void |
setListNumber(int listNumber)
Sets the id of this list |
protected void |
setParent(RtfList parent)
Sets the parent RtfList of this RtfList |
byte[] |
write()
Writes the content of the RtfList |
byte[] |
writeDefinition()
Writes the definition part of this list level |
protected byte[] |
writeListBeginning()
Writes the initialisation part of the RtfList |
protected byte[] |
writeListNumbers()
Writes only the list number and list level number. |
Methods inherited from class com.lowagie.text.rtf.RtfElement |
---|
intToByteArray, isInTable, setRtfDocument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.lowagie.text.rtf.RtfBasicElement |
---|
setRtfDocument |
Constructor Detail |
---|
public RtfList(RtfDocument doc, List list)
doc
- The RtfDocument this RtfList belongs tolist
- The List this RtfList is based onMethod Detail |
---|
public byte[] writeDefinition()
writeDefinition
in interface RtfExtendedElement
protected byte[] writeListBeginning()
protected byte[] writeListNumbers()
public byte[] write()
write
in interface RtfBasicElement
write
in class RtfElement
public int getListLevel()
public void setListLevel(int listLevel)
listLevel
- The list level to set.protected void setParent(RtfList parent)
parent
- The parent RtfList to use.public int getListNumber()
public void setListNumber(int listNumber)
listNumber
- The list number to set.public void setInTable(boolean inTable)
setInTable
in interface RtfBasicElement
setInTable
in class RtfElement
inTable
- True
if this RtfList is in a table, false
otherwisepublic void setInHeader(boolean inHeader)
setInHeader
in interface RtfBasicElement
setInHeader
in class RtfElement
inHeader
- True
if this RtfList is in a header, false
otherwiseprotected void correctIndentation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |