Package de.xima.fc.gui.model.tree
Interface ILazyTreeNodeAdapter<T>
- Type Parameters:
T
- Type of the node data.
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
WebDavLazyTreeNodeAdapter
Adapter for a lazily loaded PrimeFaces tree.
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionisLeaf
(T data, LazyTreeNode<T> node) loadChildren
(T data, LazyTreeNode<T> node) Called when the children of a node need to be loaded.
-
Method Details
-
loadChildren
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
- 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
.
-