Class InCellLists.MultiLevelListItem
- java.lang.Object
-
- org.apache.poi.examples.hssf.usermodel.InCellLists.MultiLevelListItem
-
- Enclosing class:
- InCellLists
public static final class InCellLists.MultiLevelListItem extends Object
An instance of this inner class models an item or element in a multi-level list. Each multi-level list item consists of the text for the high level items and an ArrayList containing the text for each of the associated lower level items. When written into a cell, each multi-level list item will have this general appearance. Item One Sub Item One. Sub Item Two. Item Two Sub Item One. Sub Item Two. etc. It would be quite possible to modify this class to model much more complex list structures descending through two, three or even more levels.
-
-
Constructor Summary
Constructors Constructor Description MultiLevelListItem(String itemText, List<String> lowerLevelItems)
Create a new instance of the MultiLevelListItem class using the following parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getItemText()
Get the text for the high level list item.List<String>
getLowerLevelItems()
Get the text for the associated lower level list items.
-
-
-
Constructor Detail
-
MultiLevelListItem
public MultiLevelListItem(String itemText, List<String> lowerLevelItems)
Create a new instance of the MultiLevelListItem class using the following parameters.- Parameters:
itemText
- A String that encapsulates the text for the high level list item.lowerLevelItems
- An ArrayList whose elements encapsulate the text for the associated lower level list items.
-
-
Method Detail
-
getItemText
public String getItemText()
Get the text for the high level list item.- Returns:
- A String that encapsulates the text for the high level list item.
-
-