public final class PlainListFormatter extends ListFormatter
Provides the functionality to format the list as a plain text formatting.
Constructor and Description |
---|
PlainListFormatter()
Initializes a new instance
of the
PlainListFormatter class. |
Modifier and Type | Method and Description |
---|---|
String |
closeList()
Closes the current list.
|
protected String |
formatText(ListItem item,
DocumentPartOptions documentPartOptions)
Converts
item to the string with formatting. |
Integer |
getItemMaxWidth(ListItemOptions listItemOptions,
DocumentPartOptions documentPartOptions)
Returns a maximum width of the
listItemOptions . |
void |
reset()
Resets the previous formatted item.
|
getText, getText
getPreviousDocumentPartOptions, getPreviousItem, getText, getText, isEmpty, isFirstItem
public PlainListFormatter()
Initializes a new instance
of the PlainListFormatter
class.
public void reset()
Resets the previous formatted item.
reset
in class DocumentPartFormatter<ListItem>
public String closeList()
Closes the current list.
closeList
in class ListFormatter
public Integer getItemMaxWidth(ListItemOptions listItemOptions, DocumentPartOptions documentPartOptions)
Returns a maximum width of the listItemOptions
.
getItemMaxWidth
in class ListFormatter
listItemOptions
- The options of the list item.documentPartOptions
- The options for the text formatting.listItemOptions
.protected String formatText(ListItem item, DocumentPartOptions documentPartOptions)
Converts item
to the string with formatting.
formatText
in class DocumentPartFormatter<ListItem>
item
- The item for formatting.documentPartOptions
- The options for formatting.item
.Copyright © 2019. All rights reserved.