K
- key type (usually Integer)V
- value type (usually String)public interface TreeProvider<K,V>
Tree
.Modifier and Type | Method and Description |
---|---|
K |
getKey()
Get the key object (unique identifier of the node).
|
K |
getParent()
Get the parent id (should match the
getKey() for another entry). |
V |
getValue()
Get the value that is to be displayed for this node.
|
boolean |
moveNext()
Go to the next entry in the list.
|
K getKey()
K getParent()
getKey()
for another entry).V getValue()
boolean moveNext()
DBFunctions.moveNext()
to
implement this function because the first call is dummy on database rows while here it
is expected to actually do something from the first call. The easy way out is to do a
moveNext
on the database result after executing the query and before building
the tree from it.DBFunctions.moveNext()