Class 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 Detail

      • TreeDataProvider

        public TreeDataProvider()
    • 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 node
        level - 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 tree
        level -