public abstract class ListFormatter extends DocumentPartFormatter<ListItem>
Provides the functionality to format the list.
Constructor and Description |
---|
ListFormatter() |
Modifier and Type | Method and Description |
---|---|
abstract String |
closeList()
Closes the current list.
|
Integer |
getItemMaxWidth(ListItemOptions listItemOptions,
DocumentPartOptions documentPartOptions)
Returns a maximum width of the
listItemOptions . |
String |
getText(String text)
Formats the
text . |
String |
getText(String text,
DocumentPartOptions documentPartOptions)
Formats the
text . |
formatText, getPreviousDocumentPartOptions, getPreviousItem, getText, getText, isEmpty, isFirstItem, reset
public String getText(String text, DocumentPartOptions documentPartOptions)
Formats the text
.
text
- The text to formatting.documentPartOptions
- The options for the text formatting.text
.public String getText(String text)
Formats the text
.
text
- The text to formatting.text
.public abstract String closeList()
Closes the current list.
public Integer getItemMaxWidth(ListItemOptions listItemOptions, DocumentPartOptions documentPartOptions)
Returns a maximum width of the listItemOptions
.
listItemOptions
- The options of the list item.documentPartOptions
- The options for the text formatting.listItemOptions
.Copyright © 2018. All rights reserved.