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,
java.util.List<E> path)
Determine the specified element's initial expand/collapse state.
|
void |
setExpanded(E element,
java.util.List<E> path,
boolean expanded)
Notifies this handler that the specified element's expand/collapse
state has changed.
|
boolean isExpanded(E element, java.util.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.Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2018-02-07 14:47