|
|
||||||||
| 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 | |
|---|---|
private int |
alignment
The alignment of this RtfList |
private String |
bulletCharacter
The text to use as the bullet character |
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_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_BEGIN
Constant for the beginning of the list level bulleted style |
private static byte[] |
LIST_LEVEL_STYLE_BULLETED_END
Constant for the end of 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 static int |
LIST_TYPE_BULLET
|
private static int |
LIST_TYPE_LOWER_LETTERS
|
private static int |
LIST_TYPE_LOWER_ROMAN
|
private static int |
LIST_TYPE_NUMBERED
|
private static int |
LIST_TYPE_UPPER_LETTERS
|
private static int |
LIST_TYPE_UPPER_ROMAN
|
private int |
listLevel
The level of this RtfList |
private int |
listNumber
The list number of this RtfList |
private int |
listType
Whether this RtfList is numbered |
private RtfList |
parentList
The parent List in multi-level lists. |
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 | |
|---|---|
protected void |
correctIndentation()
Correct the indentation of this RtfList by adding left/first line indentation from the parent RtfList. |
private int |
getFirstIndent()
Get the first line indentation of this RtfList. |
private int |
getLeftIndent()
Get the left indentation of this 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 |
void |
writeContent(OutputStream result)
Writes the content of the RtfList |
void |
writeDefinition(OutputStream result)
Writes the definition part of this list level |
private void |
writeIndentation(OutputStream result)
Write the indentation values for this RtfList. |
protected void |
writeListBeginning(OutputStream result)
Writes the initialization part of the RtfList |
protected void |
writeListNumbers(OutputStream result)
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 |
| 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_BEGIN
private static final byte[] LIST_LEVEL_STYLE_BULLETED_END
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 int LIST_TYPE_BULLET
private static final int LIST_TYPE_NUMBERED
private static final int LIST_TYPE_UPPER_LETTERS
private static final int LIST_TYPE_LOWER_LETTERS
private static final int LIST_TYPE_UPPER_ROMAN
private static final int LIST_TYPE_LOWER_ROMAN
private ArrayList items
private int listLevel
private int firstIndent
private int leftIndent
private int rightIndent
private int symbolIndent
private int listNumber
private int listType
private RtfFont fontNumber
private RtfFont fontBullet
private int alignment
private RtfList parentList
private String bulletCharacter
| Constructor Detail |
|---|
public RtfList(RtfDocument doc,
List list)
doc - The RtfDocument this RtfList belongs tolist - The List this RtfList is based on| Method Detail |
|---|
private void writeIndentation(OutputStream result)
throws IOException
RtfList.
result - The OutputStream to write to.
IOException - On i/o errors.
public void writeDefinition(OutputStream result)
throws IOException
writeDefinition in interface RtfExtendedElementresult - The OutputStream to write the element definition to
IOException
protected void writeListBeginning(OutputStream result)
throws IOException
result - The OutputStream to write to
IOException - On i/o errors.
protected void writeListNumbers(OutputStream result)
throws IOException
result - The OutputStream to write to
IOException - On i/o errors.
public void writeContent(OutputStream result)
throws IOException
writeContent in interface RtfBasicElementwriteContent in class RtfElementresult - The OutputStream to write the content to
IOExceptionpublic 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 RtfBasicElementsetInTable in class RtfElementinTable - True if this RtfList is in a table, false otherwisepublic void setInHeader(boolean inHeader)
setInHeader in interface RtfBasicElementsetInHeader in class RtfElementinHeader - True if this RtfList is in a header, false otherwiseprotected void correctIndentation()
private int getLeftIndent()
private int getFirstIndent()
|
Hosted by Hostbasket | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||