Package org.neotropic.util.visual.tree
Class NavTreeGrid.TreeDataProvider
- java.lang.Object
-
- org.neotropic.util.visual.tree.NavTreeGrid.TreeDataProvider
-
- Enclosing class:
- NavTreeGrid<T extends AbstractNode>
public abstract class NavTreeGrid.TreeDataProvider extends Object
Custom data provider to be used with as a lazy Tree Data
-
-
Constructor Summary
Constructors Constructor Description TreeDataProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
loadChildren(T node, int level)
Expands the nodevoid
loadChildrenOf(T node)
loads node's childrenvoid
loadData(T node, int level)
Loading data first time, we load two levelsvoid
loadDataProvider(T node)
void
reloadChildren(T node)
Used when a new child node is addedvoid
update(T node)
Used to load children when a new node is added to the tree
-
-
-
Method Detail
-
update
public void update(T node)
Used to load children when a new node is added to the tree- Parameters:
node
- parent node where were added the node
-
loadChildrenOf
public void loadChildrenOf(T node)
loads node's children- Parameters:
node
- that was expanded
-
loadDataProvider
public void loadDataProvider(T node)
-
reloadChildren
public void reloadChildren(T node)
Used when a new child node is added- Parameters:
node
- the parent node
-
loadChildren
public void loadChildren(T node, int level)
Expands the node- Parameters:
node
- the expanded nodelevel
- the depth of children to be loaded (by default only 2 levels)
-
loadData
public void loadData(T node, int level)
Loading data first time, we load two levels- Parameters:
node
- the root node of the treelevel
-
-
-