Uses of Interface
is.codion.common.model.component.tree.NodePath
Packages that use NodePath
Package
Description
A UI-agnostic tree model, with lazy loading, expansion, selection, filtering and sorting.
Package configuration values:
EntityApplicationModel.USER_PREFERENCES
EntityApplicationModel.PREFERENCES_KEY
EntityEditor.PUBLISH_PERSISTENCE_EVENTS
EntityEditor.PERSIST_FOREIGN_KEYS
EntityQueryModel.LIMIT
EntityTableModel.ON_INSERT
EntityTableModel.ORDER_QUERY
ForeignKeyModelLink.SET_CONDITION_ON_INSERT
ForeignKeyModelLink.SET_VALUE_ON_INSERT
ForeignKeyModelLink.REFRESH_ON_SELECTION
ForeignKeyModelLink.CLEAR_CONDITION_ON_EMPTY_SELECTION
ForeignKeyModelLink.CLEAR_VALUE_ON_EMPTY_SELECTION
EntitySearchModel.DEFAULT_LIMIT
EntitySearchModel.PERSISTENCE_AWARE
EntitySearchModel.WILDCARD_PREFIX
EntitySearchModel.WILDCARD_POSTFIX
EntitySearchModel.SPACE_AS_WILDCARD
EntitySearchModel.CASE_SENSITIVE
EntityConditions.NEGATION_INCLUDES_NULL
A Swing tree model based on
FilterTreeModel.Trees.
-
Uses of NodePath in is.codion.common.model.component.tree
Methods in is.codion.common.model.component.tree that return NodePathModifier and TypeMethodDescriptionstatic <T> NodePath<T> NodePath.nodePath()static <T> NodePath<T> NodePath.parent()Methods in is.codion.common.model.component.tree that return types with arguments of type NodePathModifier and TypeMethodDescriptionFilterTreeModel.Expansion.collapsed()FilterTreeModel.Expansion.expanded()FilterTreeModel.Expansion.get()FilterTreeModel.VisibleNodes.get()TreeSelection.path()The path of the selected node, asTreeSelection.item()is its item.Returns the paths of the nodes holding the given item, included or excluded, depth first, since the same item may appear in several places.TreeSelection.paths()The paths of the selected nodes, in row order, asTreeSelection.items()are their items.FilterTreeModel.Nodes.predicate()Controls which nodes are included.Methods in is.codion.common.model.component.tree with parameters of type NodePathModifier and TypeMethodDescriptionbooleanvoidFilterTreeModel.Nodes.add(NodePath<T> parent, Collection<T> items) Adds the given items as children of the given loaded parent, appended or at their sorted position when sorting.voidCalled when children have changed, their item instances replaced, or their leaf status changedvoidCollapses the given path, the expansion of its descendants remembered.booleanbooleanvoidExpands the given path, along with its ancestors, loading as needed.booleanbooleanvoidCalled when children have been insertedbooleanReturns true if the given node is a leaf: a node not yet loaded which the leaves function reported as a leaf when last called for it, or a loaded node without any included children.booleanvoidReloads the children of the node identified by the given path, and below them every loaded node still present, so what was loaded stays loaded, calling the leaves function for the children not yet loaded, seeFilterTreeModel.Builder.leaves(Function).voidFilterTreeModel.NodesListener.removed(NodePath<T> parent, List<Integer> indexes, List<NodePath<T>> children) Called when children have been removedvoidReplaces the item of the node identified by the given path, the leaves function called for the replacement off the UI thread when loading asynchronously, the node keeping its leaf status until it reports, otherwise on the calling thread.voidSelects the node identified by the given path once it is visible, replacing the selection, expanding its ancestors and loading as needed.voidFilterTreeModel.NodesListener.structureChanged(NodePath<T> path) Called when the structure below the given node may have changed arbitrarilyMethod parameters in is.codion.common.model.component.tree with type arguments of type NodePathModifier and TypeMethodDescriptionThe children function is never called for the root, and on a background thread when loading asynchronously.final BAbstractFilterTreeModelBuilder.comparators(Function<NodePath<T>, @Nullable Comparator<T>> comparators) FilterTreeModel.Builder.comparators(Function<NodePath<T>, @Nullable Comparator<T>> comparators) Specifies the comparator to use when sorting the children of each parent, given the path of the parent, the root path for the top level, a null comparator leaving the children in the order the children function returned them in.final Bfinal BThe leaves function, node by node, for when a node can tell whether it is a leaf on its own, from its item for example, seeFilterTreeModel.Builder.leaves(Function).final Bfinal BThe leaves function decides which nodes not yet loaded are leaves, a loaded node being a leaf when it has no included children.The leaves function decides which nodes not yet loaded are leaves, a loaded node being a leaf when it has no included children.final BAbstractFilterTreeModelBuilder.onSelectedPath(Consumer<NodePath<T>> path) FilterTreeModel.Builder.onSelectedPath(Consumer<NodePath<T>> path) final BAbstractFilterTreeModelBuilder.onSelectedPaths(Consumer<List<NodePath<T>>> paths) FilterTreeModel.Builder.onSelectedPaths(Consumer<List<NodePath<T>>> paths) final BThe path function, the inverse of the children function, providing the path of the node holding an item, so that an item not yet in the model, its parent not loaded, can be selected viaTreeSelection.item()orTreeSelection.items(), which expand its ancestors, loading them, as for an item below a collapsed ancestor.voidFilterTreeModel.Nodes.remove(Collection<NodePath<T>> paths) Removes the nodes identified by the given paths, along with their subtrees and expansion.voidFilterTreeModel.Expansion.set(Collection<NodePath<T>> paths) Replaces the expanded paths, loading as needed, for restoring the expansion.AbstractFilterTreeModelBuilder.SelectionContext.treeSelection(MultiSelection<NodePath<T>> selection) Returns aTreeSelectionbased on the given selection of paths, adding the tree behaviour: the items of the selected nodes, expanding the ancestors of the hidden nodes selected, andTreeSelection.set(NodePath).Constructor parameters in is.codion.common.model.component.tree with type arguments of type NodePathModifierConstructorDescriptionprotectedAbstractFilterTreeModelBuilder(Supplier<Collection<T>> roots, Function<NodePath<T>, Collection<T>> children) -
Uses of NodePath in is.codion.framework.model
Method parameters in is.codion.framework.model with type arguments of type NodePathModifier and TypeMethodDescriptionAbstractEntityTableTreeModel.TreeModelBuilder.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.AbstractEntityTreeModel.TreeModelBuilder.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.final BAbstractEntityTreeModelBuilder.comparators(Function<NodePath<Entity>, @Nullable Comparator<Entity>> comparators) EntityTreeModel.Builder.comparators(Function<NodePath<Entity>, @Nullable Comparator<Entity>> comparators) Replaces the ordering of siblings entirely, the roots, the foreign key comparators and order bys, and the entity type comparators.final Bfinal BReplaces the default leaf detection, seeEntityTreeModel.Builder.leaves(Function), with a function deciding node by node, based on a domain attribute for example.final BAbstractEntityTreeModelBuilder.leaves(Function<List<NodePath<Entity>>, Collection<NodePath<Entity>>> leaves) final BAbstractEntityTreeModelBuilder.leaves(Function<List<NodePath<Entity>>, Collection<NodePath<Entity>>> leaves) EntityTreeModel.Builder.leaves(Function<List<NodePath<Entity>>, Collection<NodePath<Entity>>> leaves) Replaces the default leaf detection, which queries for the siblings referenced via the configured foreign keys, a node of an entity type no configured foreign key references always being a leaf.EntityTreeModel.Builder.leaves(Function<List<NodePath<Entity>>, Collection<NodePath<Entity>>> leaves) Replaces the default leaf detection, which queries for the siblings referenced via the configured foreign keys, a node of an entity type no configured foreign key references always being a leaf.final BAbstractEntityTreeModelBuilder.onSelectedPath(Consumer<NodePath<Entity>> path) final BAbstractEntityTreeModelBuilder.onSelectedPaths(Consumer<List<NodePath<Entity>>> paths) final B -
Uses of NodePath in is.codion.swing.common.model.component.tree
Methods in is.codion.swing.common.model.component.tree that return NodePathMethods in is.codion.swing.common.model.component.tree with parameters of type NodePathMethod parameters in is.codion.swing.common.model.component.tree with type arguments of type NodePathModifier and TypeMethodDescriptionvoidSwingFilterTreeModel.fireNodesChanged(Collection<NodePath<T>> paths) Notifies all listeners that the given nodes have changed, for when external state changes how they are rendered. -
Uses of NodePath in is.codion.swing.common.ui.component.tree
Methods in is.codion.swing.common.ui.component.tree with parameters of type NodePath