public class DefaultExternalExpansionModel<E> extends java.lang.Object implements TreeList.ExpansionModel<E>
TreeList.ExpansionModel
that uses a Map
to remember
the expanded/collapsed state of elements.
TODO(jessewilson): USE WEAK REFERENCESConstructor and Description |
---|
DefaultExternalExpansionModel() |
DefaultExternalExpansionModel(TreeList.ExpansionModel<E> defaultsModel) |
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.
|
public DefaultExternalExpansionModel(TreeList.ExpansionModel<E> defaultsModel)
public DefaultExternalExpansionModel()
public boolean isExpanded(E element, java.util.List<E> path)
TreeList.ExpansionModel
isExpanded
in interface TreeList.ExpansionModel<E>
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.public void setExpanded(E element, java.util.List<E> path, boolean expanded)
TreeList.ExpansionModel
setExpanded
in interface TreeList.ExpansionModel<E>
Glazed Lists, Copyright © 2003 publicobject.com, O'Dell Engineering.
Documentation build by mockbuild at 2015-02-09 16:42