public abstract class NumberDecoratorBase extends Object implements ListDecorator
A NumberDecorator can be reused in the same Document.
ListDecorator.ListType| Modifier and Type | Field and Description |
|---|---|
protected OdfTextListStyle |
listStyle |
protected OdfStyle |
paragraphStyle |
protected OdfOfficeAutomaticStyles |
styles |
| Modifier | Constructor and Description |
|---|---|
protected |
NumberDecoratorBase(Document doc,
String styleName,
String styleNameIntern,
String numberingFormat,
String suffix,
String prefix)
Constructor with Document.
|
| Modifier and Type | Method and Description |
|---|---|
void |
decorateList(List list)
Decorate the specifies
list, of which style is set. |
void |
decorateListItem(ListItem item)
Decorate the specifies
item in a List, of which style is set. |
ListDecorator.ListType |
getListType()
Get the ListType of this ListDecorator.
|
protected OdfTextListStyle listStyle
protected OdfStyle paragraphStyle
protected OdfOfficeAutomaticStyles styles
protected NumberDecoratorBase(Document doc, String styleName, String styleNameIntern, String numberingFormat, String suffix, String prefix)
doc - the Document which this NumberDecorator will be used on.styleName - style name: (i.e. NumberDecorator: NumberDecorator.DEFAULT_NAME)styleNameIntern - intern stylename (i.e. NumberDecorator: "Numbering_20_Symbols")numberingFormat - the numbering format (i.e. NumberDecorator: "1", sonsrt "a", "A", "i",
"I", ....)suffix - suffix after the number ("." for 1., 2., ... ")" for a) b) c) etc)prefix - prefix before the number ("(" for (a) (b) (c) etc)public void decorateList(List list)
ListDecoratorlist, of which style is set.decorateList in interface ListDecoratorlist - the List is decorated.public void decorateListItem(ListItem item)
ListDecoratoritem in a List, of which style is set.decorateListItem in interface ListDecoratoritem - the ListItem is decorated.public ListDecorator.ListType getListType()
ListDecoratorgetListType in interface ListDecoratorCopyright © 2010–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.