|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface TreeList.ExpansionModel<E>
Provide the expand/collapse state of nodes.
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.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.void setExpanded(E element, List<E> path, boolean expanded)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |