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.
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()FilterTreeModel.Nodes.predicate()Controls which nodes are included.FilterTreeModel.selection()The selection, over theFilterTreeModel.visible()nodes, so a path can only be selected while visible, expand its parent first otherwise.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, either according to the leaf function or by having been loaded 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.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.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 TypeMethodDescriptionprotected final FilterTreeModel<T> AbstractFilterTreeModelBuilder.build(Function<FilterTreeModel.VisibleNodes<T>, MultiSelection<NodePath<T>>> selection, FilterTreeModel.NodesListener<T> listener) Builds aFilterTreeModelwith the givenMultiSelectionandFilterTreeModel.NodesListener, for a toolkit builder to wrap in its own model.The children function is never called for the root, and on a background thread when loading asynchronously.final Bfinal BWithout a leaf function, a node not yet loaded is not a leaf, so a view displays an expand handle until it is loaded.final BAbstractFilterTreeModelBuilder.onSelectedItem(Consumer<NodePath<T>> item) FilterTreeModel.Builder.onSelectedItem(Consumer<NodePath<T>> item) final BAbstractFilterTreeModelBuilder.onSelectedItems(Consumer<List<NodePath<T>>> items) FilterTreeModel.Builder.onSelectedItems(Consumer<List<NodePath<T>>> items) 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.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.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