T
- node typepublic abstract class TreeDataProvider<T> extends Object implements ITreeDataProvider<T>
ITreeProvider
to a IDataProvider
.Modifier | Constructor and Description |
---|---|
protected |
TreeDataProvider(ITreeProvider<T> provider)
Construct.
|
Modifier and Type | Method and Description |
---|---|
void |
detach()
Detaches model after use.
|
protected abstract boolean |
iterateChildren(T node)
Hook method to decide whether the given node's children should be iterated.
|
Iterator<? extends T> |
iterator(long first,
long count)
Gets an iterator for the subset of total data
|
NodeModel<T> |
model(T object)
Wrap the given node in a
NodeModel which provides additional branch information
needed by TreeColumn . |
long |
size()
Gets total number of items in the collection represented by the DataProvider
|
protected TreeDataProvider(ITreeProvider<T> provider)
provider
- the provider to adaptpublic long size()
IDataProvider
size
in interface IDataProvider<T>
public Iterator<? extends T> iterator(long first, long count)
IDataProvider
iterator
in interface IDataProvider<T>
first
- first row of datacount
- minimum number of elements to retrieveprotected abstract boolean iterateChildren(T node)
node
- nodetrue
if the node's children should be iteratedpublic NodeModel<T> model(T object)
ITreeDataProvider
NodeModel
which provides additional branch information
needed by TreeColumn
.model
in interface ITreeDataProvider<T>
model
in interface IDataProvider<T>
object
- nodepublic void detach()
IDetachable
detach
in interface IDataProvider<T>
detach
in interface IDetachable
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.