M
- Model class for sectionpublic class TreeSection<M> extends NestedSection implements Notifier
Constructor and Description |
---|
TreeSection(M item)
Constructor which initializes TreeSection with an item.
|
Modifier and Type | Method and Description |
---|---|
void |
addSection(Section section)
Adds a TreeSection to the current TreeSection.
|
TreeSection |
getChild(int index)
Returns the child section at the specified position in this list.
|
M |
getParent()
Returns the current item.
|
void |
setTreeDecorator(Decorator treeDecorator)
Sets a decorator for TreeSection and its child items.
|
notifySectionItemMoved, notifySectionRangeChanged, notifySectionRangeInserted, notifySectionRangeRemoved, onItemClicked
addDecorator, addDecorator, hideSection, isSectionHidden, onChanged, onInserted, onMoved, onRemoved, removeAllDecorators, removeDecorator, removeDecorator, setExpansionMode, setSectionExpansionMode, setSelectionMode, setSpanCount, showSection
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
notifySectionItemMoved, notifySectionRangeChanged, notifySectionRangeInserted, notifySectionRangeRemoved
public TreeSection(M item)
public TreeSection getChild(int index)
index
- index of the child section to returnjava.lang.IndexOutOfBoundsException
- if the index is out of range
(index < 0 || index >= size())public M getParent()
public void setTreeDecorator(Decorator treeDecorator)
treeDecorator
- Decorator that needs to be set for current TreeSection and its child
sectionspublic void addSection(Section section)
addSection
in class NestedSection
section
- TreeSection to be added