Module is.codion.framework.model
Package is.codion.framework.model
Interface AbstractEntityTreeModel.TreeModelBuilder<M extends FilterTreeModel<Entity>>
- Type Parameters:
M- the tree model type
- Enclosing class:
AbstractEntityTreeModel<M extends FilterTreeModel<Entity>>
protected static interface AbstractEntityTreeModel.TreeModelBuilder<M extends FilterTreeModel<Entity>>
Builds the underlying tree model of an
EntityTreeModel.-
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 entity tree defaults and the builder options- Returns:
- a new tree model
-