public class DescriptionListItem extends AbstractAsciiListItem
AsciiListItem for a description list.| Modifier and Type | Field and Description |
|---|---|
protected Object |
term
The term of a description.
|
content| Constructor and Description |
|---|
DescriptionListItem(Object term,
Object description)
Creates a new description item with term and description.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getTerm()
Returns the term of the description item.
|
String |
render(int preLabelIndent,
String preLabelStr,
String postLabelStr,
int postLabelIndent,
boolean singleLine)
Renders the list item, generates a string representation of it.
|
getContent, renderprotected final Object term
public String render(int preLabelIndent, String preLabelStr, String postLabelStr, int postLabelIndent, boolean singleLine)
preLabelIndent - indentation before the label (and before the pre-label string)preLabelStr - a string to be printed after pre-indentation but before the labelpostLabelStr - 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)singleLine - flag to render for single line (true) or multiline (false)public Object getTerm()
Copyright © 2015–2016. All rights reserved.