Class EmfTreePageBuilder
java.lang.Object
com.amalgamasimulation.desktop.appelements.builders.EmfTreePageBuilder
Builder of a page with an EMF tree for a part with pages (AbstractPagesPart). It is usually
obtained with Pages.emfTree(Row.class).
The steps go in the same order as in EmfTablePageBuilder, with one more step, childrenFeature, after the elements feature:
Pages.emfTree(MineArea.class)
.treeElementType(TreeElementType.MINE_AREAS)
.container(() -> scenario)
.elementsFeature(DatamodelPackage.Literals.SCENARIO__MINE_AREAS)
.childrenFeature(DatamodelPackage.Literals.MINE_AREA__CHILD_MINE_AREAS)
.columns(tree -> tree.column(MineArea::getName).name("Name"))
.register(this);
- Author:
- Ionov Ivan
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceEmfTreePageBuilder.ChildrenFeatureBuilder<V extends org.eclipse.emf.ecore.EObject>The fourth step: the reference to the children.static interfaceEmfTreePageBuilder.ColumnBuilder<V extends org.eclipse.emf.ecore.EObject>The fifth step: the columns.static interfaceEmfTreePageBuilder.ContainerBuilder<V extends org.eclipse.emf.ecore.EObject>The second step: the container of the list.static interfaceEmfTreePageBuilder.ElementsFeatureBuilder<V extends org.eclipse.emf.ecore.EObject>The third step: the list of all tree objects.static interfaceEmfTreePageBuilder.FinalBuilder<V extends org.eclipse.emf.ecore.EObject>The last step: optional settings in any order, then register.static interfaceEmfTreePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R> Builder of the tree toolbar.static interfaceEmfTreePageBuilder.TreeElementTypeBuilder<V extends org.eclipse.emf.ecore.EObject>The first step: the tree element. -
Method Summary
Modifier and TypeMethodDescriptionstatic <V extends org.eclipse.emf.ecore.EObject>
EmfTreePageBuilder.TreeElementTypeBuilder<V> create()Starts the setup of a new page with a tree.static <V extends org.eclipse.emf.ecore.EObject,R>
EmfTreePageBuilder.ToolBarBuilder<V, R> toolBar(TreePageProperties<V> properties, R owner) Returns a toolbar builder for the settings of an existing page.
-
Method Details
-
create
public static <V extends org.eclipse.emf.ecore.EObject> EmfTreePageBuilder.TreeElementTypeBuilder<V> create()Starts the setup of a new page with a tree.- Type Parameters:
V- the type of the tree rows- Returns:
- the first step of the builder
-
toolBar
public static <V extends org.eclipse.emf.ecore.EObject,R> EmfTreePageBuilder.ToolBarBuilder<V,R> toolBar(TreePageProperties<V> properties, R owner) Returns a toolbar builder for the settings of an existing page. EmfTreePage.toolBar() uses it to add toolbar items after register.- Type Parameters:
V- the type of the tree rowsR- the type returned by end()- Parameters:
properties- the settings of the pageowner- the object returned by end()- Returns:
- the toolbar builder
-