public static interface TreeList.ExpansionModel<E>
This interface will be consulted when nodes are inserted. Whenever the expanded/collapsed state
of an element is changed, this provider is notified. It is not strictly necessary for
implementors to record the expand/collapsed state of all nodes, since TreeList
caches
node state internally.
Modifier and Type | Method and Description |
---|---|
boolean |
isExpanded(E element,
List<E> path)
Determine the specified element's initial expand/collapse state.
|
void |
setExpanded(E element,
List<E> path,
boolean expanded)
Notifies this handler that the specified element's expand/collapse state has changed.
|
boolean isExpanded(E element, List<E> path)
element
- the newly inserted (or unfiltered etc.) valuepath
- the tree path of the element, from root to the value.true
if the specified node's children shall be visible, or
false
if they should be hidden.Copyright © 2024 levigo holding gmbh. All rights reserved.