|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.alee.extended.tree.AbstractTreeDataProvider<E>
public abstract class AbstractTreeDataProvider<E extends AsyncUniqueNode>
Abstract data provider with implemented comparator and filter getters and setters.
Field Summary | |
---|---|
protected java.util.Comparator<E> |
comparator
Childs comparator. |
protected Filter<E> |
filter
Childs filter. |
Constructor Summary | |
---|---|
AbstractTreeDataProvider()
|
Method Summary | |
---|---|
java.util.Comparator<E> |
getChildsComparator(E node)
Returns child nodes comparator for the specified asynchronous tree node. |
Filter<E> |
getChildsFilter(E node)
Returns child nodes filter for the specified asynchronous tree node. |
boolean |
isLeaf(E node)
Returns false by default to allow childs load requests. |
void |
setChildsComparator(java.util.Comparator<E> comparator)
Sets childs comparator for all nodes. |
void |
setChildsFilter(Filter<E> filter)
Sets childs filter for all nodes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alee.extended.tree.AsyncTreeDataProvider |
---|
getRoot, loadChilds |
Field Detail |
---|
protected java.util.Comparator<E extends AsyncUniqueNode> comparator
protected Filter<E extends AsyncUniqueNode> filter
Constructor Detail |
---|
public AbstractTreeDataProvider()
Method Detail |
---|
public java.util.Comparator<E> getChildsComparator(E node)
getChildsComparator
in interface AsyncTreeDataProvider<E extends AsyncUniqueNode>
node
- parent node
public void setChildsComparator(java.util.Comparator<E> comparator)
comparator
- childs comparator for all nodespublic Filter<E> getChildsFilter(E node)
getChildsFilter
in interface AsyncTreeDataProvider<E extends AsyncUniqueNode>
node
- parent node
public void setChildsFilter(Filter<E> filter)
filter
- childs filter for all nodespublic boolean isLeaf(E node)
isLeaf
in interface AsyncTreeDataProvider<E extends AsyncUniqueNode>
node
- node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |