Interface ILazyTreeNodeAdapter<T>

Type Parameters:
T - Type of the node data.
All Superinterfaces:
Serializable
All Known Implementing Classes:
WebDavLazyTreeNodeAdapter

public interface ILazyTreeNodeAdapter<T> extends Serializable
Adapter for a lazily loaded PrimeFaces tree.
Author:
XIMA MEDIA GmbH
  • Method Details

    • loadChildren

      List<org.primefaces.model.TreeNode<T>> loadChildren(T data, LazyTreeNode<T> node)
      Called when the children of a node need to be loaded.
      Parameters:
      data - Data of a tree node.
      node - A node of the tree.
      Returns:
      The children of the given node.
    • isLeaf

      Boolean isLeaf(T data, LazyTreeNode<T> node)
      Parameters:
      data - Data of a tree node.
      node - A node of the tree.
      Returns:
      Whether the node is a leaf, i.e. does not have children. When this info cannot be determined without loading the children, this should return null.