org.apache.poi.hwpf.usermodel
public final class HWPFList extends java.lang.Object
registerList
in
HWPFDocument
.
In Word, lists are not ranged entities, meaning you can't actually add one
to the document. Lists only act as properties for list entries. Once you
register a list, you can add list entries to a document that are a part of
the list.
The only benefit of this that I see, is that you can add a list entry
anywhere in the document and continue numbering from the previous list.Constructor and Description |
---|
HWPFList(boolean numbered,
StyleSheet styleSheet) |
Modifier and Type | Method and Description |
---|---|
ListData |
getListData() |
ListFormatOverride |
getOverride() |
void |
setLevelNumberProperties(int level,
CharacterProperties chp)
Sets the character properties of the list numbers.
|
void |
setLevelParagraphProperties(int level,
ParagraphProperties pap)
Sets the paragraph properties for a particular level of the list.
|
void |
setLevelStyle(int level,
int styleIndex) |
public HWPFList(boolean numbered, StyleSheet styleSheet)
numbered
- true if the list should be numbered; false if it should be
bulleted.styleSheet
- The document's stylesheet.public void setLevelNumberProperties(int level, CharacterProperties chp)
level
- the level number that the properties should apply to.chp
- The character properties.public void setLevelParagraphProperties(int level, ParagraphProperties pap)
level
- The level number.pap
- The paragraph propertiespublic void setLevelStyle(int level, int styleIndex)
public ListData getListData()
public ListFormatOverride getOverride()
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.