Module is.codion.framework.model
Package is.codion.framework.model
Interface AbstractEntityTableTreeModel.TreeModelBuilder<M extends FilterTreeModel<Entity>>
- Type Parameters:
M- the tree model type
- Enclosing class:
AbstractEntityTableTreeModel<M extends FilterTreeModel<Entity>>
protected static interface AbstractEntityTableTreeModel.TreeModelBuilder<M extends FilterTreeModel<Entity>>
Builds the underlying tree model of an
EntityTableTreeModel.-
Method Summary
Modifier and TypeMethodDescriptionbuild(Supplier<Collection<Entity>> roots, Function<NodePath<Entity>, Collection<Entity>> children, Consumer<FilterTreeModel.Builder<Entity, ?>> options) Builds the tree model, given the roots supplier and children function, the tree model builder being configured via the given options before it builds the model.
-
Method Details
-
build
M build(Supplier<Collection<Entity>> roots, Function<NodePath<Entity>, Collection<Entity>> children, Consumer<FilterTreeModel.Builder<Entity, ?>> options) Builds the tree model, given the roots supplier and children function, the tree model builder being configured via the given options before it builds the model.- Parameters:
roots- supplies the rootschildren- provides the children of a nodeoptions- configures the tree model builder with the table tree defaults- Returns:
- a new tree model
-