T - the type of the tree item datapublic interface TreeChildContribution<T> extends TreeContribution<T>
ModularTreeView.| Modifier and Type | Method and Description |
|---|---|
<U extends T> |
getChildren(TreeItemData<U> data)
Determine which children should be contributed to the given data item.
|
<U extends T> |
hasChildren(TreeItemData<U> data)
Determine whether children should be contributed to the given data item.
|
appliesTo, getDataType<U extends T> boolean hasChildren(TreeItemData<U> data)
Collection.isEmpty() invoked
on the result of getChildren(TreeItemData), but may be more
efficient to implement.U - the specific type of the tree itemdata - a data item in the tree<U extends T> java.util.stream.Stream<TypedObject<?>> getChildren(TreeItemData<U> data)
U - the specific type of the tree itemdata - a data item in the tree