public class ItemizeList extends AbstractAsciiList implements AsciiList_Itemize
AsciiList_Itemize.| Modifier and Type | Field and Description |
|---|---|
protected ListStyle_ItemizeNested |
style
The style for list items.
|
isContinued, items, level, maxItemIndent, postLabelIndent, postLabelStr, preLabelIndent, preLabelStr, widthIMPLICIT_NEWLINE| Constructor and Description |
|---|
ItemizeList()
Creates a new itemize list.
|
ItemizeList(boolean isContinued)
Creates a new itemize list.
|
ItemizeList(ItemizeList list)
Creates a new itemize list.
|
| Modifier and Type | Method and Description |
|---|---|
AsciiList_Itemize |
addAllItems(Collection<String> items)
Adds a collection of new items to the list.
|
AsciiList_Itemize |
addItem(AsciiList list)
Adds a new list to the list.
|
AsciiList_Itemize |
addItem(String item)
Adds a new item to the list.
|
int |
calculateMaxIndentation(AsciiListItem item,
int position)
Calculates indentation for a list item.
|
AsciiList |
copy()
Returns a copy of the list.
|
void |
prepareRender()
Prepares a list to be rendered.
|
String |
renderItem(AsciiListItem item,
int position)
Renders a particular item of a list.
|
AsciiList_Itemize |
setListStyle(ListStyle style)
Sets the style of a list.
|
calculateMaxIndentation, getItems, getLevel, getPostLabelIndent, getPostLabelString, getPreLabelIndent, getPreLabelString, isContinuedList, render, setLabelDefaults, setLevel, setPostLabelIndent, setPostLabelString, setPreLabelIndent, setPreLabelString, setWidth, wrapItem, wrapItemNextLineclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcalculateMaxIndentation, getItems, getLevel, getPostLabelIndent, getPostLabelString, getPreLabelIndent, getPreLabelString, isContinuedList, render, setLabelDefaults, setLevel, setPostLabelIndent, setPostLabelString, setPreLabelIndent, setPreLabelString, setWidthprotected ListStyle_ItemizeNested style
public ItemizeList()
public ItemizeList(boolean isContinued)
isContinued - true if continued from previous list of same type, false otherwisepublic ItemizeList(ItemizeList list)
list - original listpublic AsciiList_Itemize addItem(AsciiList list)
AsciiList_ItemizeAsciiList.isContinuedList() returns true, not continued if it returns false.addItem in interface AsciiList_Itemizelist - the new listpublic void prepareRender()
AsciiListprepareRender in interface AsciiListprepareRender in class AbstractAsciiListpublic String renderItem(AsciiListItem item, int position)
AsciiListrenderItem in interface AsciiListitem - the item to be renderedposition - the position of the item in the item listpublic AsciiList_Itemize setListStyle(ListStyle style)
AsciiListsetListStyle in interface AsciiListstyle - new list stylepublic AsciiList copy()
AsciiListpublic int calculateMaxIndentation(AsciiListItem item, int position)
AsciiListcalculateMaxIndentation in interface AsciiListitem - the item to be used for calculationposition - the position of the item in the item listpublic AsciiList_Itemize addItem(String item)
AsciiList_ItemizeaddItem in interface AsciiList_Itemizeitem - new item, only added if not blankpublic AsciiList_Itemize addAllItems(Collection<String> items)
AsciiList_ItemizeaddAllItems in interface AsciiList_Itemizeitems - collection of items, individual items only added if not blankCopyright © 2015–2016. All rights reserved.