|
||||||||||
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
The RtfList stores one List. It also provides the methods to write the list declaration and the list data.
Field Summary | |
private int |
firstIndent
The first indentation of this RtfList |
private RtfFont |
fontBullet
The RtfFont for bulleted lists |
private RtfFont |
fontNumber
The RtfFont for numbered lists |
private ArrayList |
items
The subitems of this RtfList |
private int |
leftIndent
The left indentation of this RtfList |
private static byte[] |
LIST_BULLET
Constant for the old bulleted list |
private static byte[] |
LIST_LEVEL
Constant for list level |
private static byte[] |
LIST_LEVEL_ALIGNMENT
Constant for list level alignment old |
private static byte[] |
LIST_LEVEL_ALIGNMENT_NEW
Constant for list level alignment new |
private static byte[] |
LIST_LEVEL_FIRST_INDENT
Constant for the first indentation |
private static byte[] |
LIST_LEVEL_NUMBER
Constant for the list level value |
private static byte[] |
LIST_LEVEL_NUMBERS_BEGIN
Constant for the beginning of the list level numbers |
private static byte[] |
LIST_LEVEL_NUMBERS_END
Constant for the end of the list level numbers |
private static byte[] |
LIST_LEVEL_NUMBERS_NUMBERED
Constant for the list level numbers |
private static byte[] |
LIST_LEVEL_START_AT
Constant for list level start at |
private static byte[] |
LIST_LEVEL_STYLE_BULLETED
Constant for the list level bulleted style |
private static byte[] |
LIST_LEVEL_STYLE_NUMBERED_BEGIN
Constant for the beginning of the list level numbered style |
private static byte[] |
LIST_LEVEL_STYLE_NUMBERED_END
Constant for the end of the list level numbered style |
private static byte[] |
LIST_LEVEL_SYMBOL_INDENT
Constant for the symbol indentation |
private static byte[] |
LIST_LEVEL_TEXT
Constant for list level text |
private static byte[] |
LIST_LEVEL_TYPE
Constant for list level style old |
private static byte[] |
LIST_LEVEL_TYPE_NEW
Constant for list level style new |
private static byte[] |
LIST_NUMBER_END
Constant for the old list number end |
private static byte[] |
LIST_TEXT
Constant for the old list text |
private int |
listLevel
The level of this RtfList |
private int |
listNumber
The list number of this RtfList |
private boolean |
numbered
Whether this RtfList is numbered |
private int |
rightIndent
The right indentation of this RtfList |
private int |
symbolIndent
The symbol indentation of this RtfList |
private static byte[] |
TAB
Constant for a tab character |
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 | |
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 |
byte[] |
write()
Writes the content of the RtfList |
byte[] |
writeDefinition()
Writes the definition part of this list level |
private byte[] |
writeIndentations()
|
private byte[] |
writeListBeginning()
Writes the initialisation part of the RtfList |
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 |
Field Detail |
private static final byte[] LIST_LEVEL
private static final byte[] LIST_LEVEL_TYPE
private static final byte[] LIST_LEVEL_TYPE_NEW
private static final byte[] LIST_LEVEL_ALIGNMENT
private static final byte[] LIST_LEVEL_ALIGNMENT_NEW
private static final byte[] LIST_LEVEL_START_AT
private static final byte[] LIST_LEVEL_TEXT
private static final byte[] LIST_LEVEL_STYLE_NUMBERED_BEGIN
private static final byte[] LIST_LEVEL_STYLE_NUMBERED_END
private static final byte[] LIST_LEVEL_STYLE_BULLETED
private static final byte[] LIST_LEVEL_NUMBERS_BEGIN
private static final byte[] LIST_LEVEL_NUMBERS_NUMBERED
private static final byte[] LIST_LEVEL_NUMBERS_END
private static final byte[] LIST_LEVEL_FIRST_INDENT
private static final byte[] LIST_LEVEL_SYMBOL_INDENT
private static final byte[] LIST_LEVEL_NUMBER
private static final byte[] TAB
private static final byte[] LIST_TEXT
private static final byte[] LIST_NUMBER_END
private static final byte[] LIST_BULLET
private ArrayList items
private int listLevel
private int firstIndent
private int leftIndent
private int rightIndent
private int symbolIndent
private int listNumber
private boolean numbered
private RtfFont fontNumber
private RtfFont fontBullet
Constructor Detail |
public RtfList(RtfDocument doc, List list)
doc
- The RtfDocument this RtfList belongs tolist
- The List this RtfList is based onMethod Detail |
private byte[] writeIndentations()
public byte[] writeDefinition()
writeDefinition
in interface RtfExtendedElement
private byte[] writeListBeginning()
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.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
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |