public abstract class ListFormatter extends DocumentPartFormatter<ListItem>
Provides the functionality to format the list.
Modifier | Constructor and Description |
---|---|
protected |
ListFormatter()
Initializes a new instance of the
ListFormatter class. |
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
protected ListFormatter()
Initializes a new instance of the ListFormatter
class.
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 © 2019. All rights reserved.