Class Trees
java.lang.Object
com.amalgamasimulation.desktop.ui.tables.Trees
The class responsible for creating trees.
- Author:
- Ionov Ivan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA builder class to set up the properties of a tree constructorstatic interfacestatic interfacestatic classTrees.ObjectBuilder<V,N extends AbstractTreeNode<V, N>> static interfaceTrees.ObjectParentBuilder<V,N extends AbstractTreeNode<V, N>> static interfacestatic interface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> Trees.ParentBuilder<T, EditableTree<T>> Creates and returns a tree with editable data.static <T extends org.eclipse.emf.ecore.EObject>
Trees.ParentBuilder<T, EMFTree<T>> Creates and returns a tree with editable data and a special set of functions for editing EMF data (EObject).static <V> Trees.ObjectParentBuilder<V, TreeNode<V>> static <V,N extends AbstractTreeNode<V, N>>
Trees.ObjectParentBuilder<V, N> objects(List<? extends V> roots, BiFunction<V, N, N> nodeFactory) static <T> Trees.ParentBuilder<T, Tree<T>> Creates and returns a tree without the ability to edit data
-
Constructor Details
-
Trees
public Trees()
-
-
Method Details
-
readonly
Creates and returns a tree without the ability to edit data- Type Parameters:
T- type of row value- Parameters:
parentElements- List of parentElements to be shown in the tree- Returns:
- builder object
-
editable
Creates and returns a tree with editable data.- Type Parameters:
T- type of row value- Parameters:
parentElements- List of parentElements to be shown in the tree- Returns:
- builder object
-
emf
public static <T extends org.eclipse.emf.ecore.EObject> Trees.ParentBuilder<T,EMFTree<T>> emf(List<T> parentElements) Creates and returns a tree with editable data and a special set of functions for editing EMF data (EObject).- Type Parameters:
T- type of row value- Parameters:
parentElements- List of parentElements to be shown in the tree- Returns:
- builder object
-
objects
-
objects
public static <V,N extends AbstractTreeNode<V, Trees.ObjectParentBuilder<V,N>> N> objects(List<? extends V> roots, BiFunction<V, N, N> nodeFactory)
-