public class AbstractAsciiListItem extends Object implements AsciiListItem
AsciiListItem.| Modifier and Type | Field and Description |
|---|---|
protected Object |
content
The actual content of the list item.
|
| Constructor and Description |
|---|
AbstractAsciiListItem(Object content)
Creates a new list item
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getContent()
Returns the content of the list item.
|
String |
render(int preLabelIndent,
String preLabelStr,
String label,
String postLabelStr,
int postLabelIndent)
Renders the list item, generates a string representation of it.
|
protected final Object content
public AbstractAsciiListItem(Object content)
content - the content for the new list itemIllegalArgumentException - if the content or the content toString was emptyNullPointerException - if the content toString was nullpublic String render(int preLabelIndent, String preLabelStr, String label, String postLabelStr, int postLabelIndent)
AsciiListItemrender in interface AsciiListItempreLabelIndent - indentation before the label (and before the pre-label string)preLabelStr - a string to be printed after pre-indentation but before the labellabel - the actual item label (for instance "*" for an itemize list)postLabelStr - a string to be printed right after the label but before the post-indentationpostLabelIndent - indentation after the post-label string (before the actual item content)public Object getContent()
AsciiListItemgetContent in interface AsciiListItemCopyright © 2015–2016. All rights reserved.