public interface TA_Checklist extends TA_List
A echecklist list using ASCII and UTF-8 characters.
| Modifier and Type | Method and Description |
|---|---|
static TA_Checklist |
create(String description,
TA_CheckedItem... items)
Creates a new checklist list with levels.
|
static TA_Checklist |
create(TA_CheckedItem item,
String description)
Creates a new checklist with unlimited levels.
|
String |
getLabel(int level,
boolean checked)
Returns the label for a given level.
|
int |
getMaxLevel()
Returns the max level the style supports.
|
default StrBuilder |
toDoc() |
String getLabel(int level, boolean checked)
Returns the label for a given level. If the list is implementing a nested style, this method will always use the top level style.
level - the level for the requested stylechecked - set true if the item is checked, false otherwiseIllegalArgumentException - if requested level is not supportedint getMaxLevel()
Returns the max level the style supports.
default StrBuilder toDoc()
toDoc in interface HasToDocstatic TA_Checklist create(TA_CheckedItem item, String description)
Creates a new checklist with unlimited levels.
item - the checked item to be useddescription - list descriptionstatic TA_Checklist create(String description, TA_CheckedItem... items)
Creates a new checklist list with levels.
description - list descriptionitems - an array with checked itemsCopyright © 2016–2017. All rights reserved.