ca.odell.glazedlists
Interface TreeList.ExpansionModel<E>

All Known Implementing Classes:
DefaultExternalExpansionModel
Enclosing class:
TreeList<E>

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

isExpanded

boolean isExpanded(E element,
                   List<E> path)
Determine the specified element's initial expand/collapse state.

Parameters:
element - the newly inserted (or unfiltered etc.) value
path - the tree path of the element, from root to the value.
Returns:
true if the specified node's children shall be visible, or false if they should be hidden.

setExpanded

void setExpanded(E element,
                 List<E> path,
                 boolean expanded)
Notifies this handler that the specified element's expand/collapse state has changed.



Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by hbrands at 2015-02-16 14:02