T - node typepublic abstract class TreeDataProvider<T> extends Object implements ITreeDataProvider<T>
ITreeProvider to a IDataProvider.| Constructor and Description |
|---|
TreeDataProvider(ITreeProvider<T> provider)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
void |
detach() |
protected abstract boolean |
iterateChildren(T node)
Hook method to decide wether the given node's children should be iterated.
|
Iterator<? extends T> |
iterator(long first,
long count) |
NodeModel<T> |
model(T object)
Wrap the given node in a
NodeModel which provides additional branch information
needed by TreeColumn. |
long |
size() |
public TreeDataProvider(ITreeProvider<T> provider)
provider - the provider to adaptpublic long size()
size in interface IDataProvider<T>public Iterator<? extends T> iterator(long first, long count)
iterator in interface IDataProvider<T>protected abstract boolean iterateChildren(T node)
node - nodetrue if the node's children should be iteratedpublic NodeModel<T> model(T object)
ITreeDataProviderNodeModel which provides additional branch information
needed by TreeColumn.model in interface ITreeDataProvider<T>model in interface IDataProvider<T>object - nodepublic void detach()
detach in interface IDetachableCopyright © 2006–2015 Apache Software Foundation. All rights reserved.