Class EmfSelectionTableSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfSelectionTableSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
EmfSelectionTableSectionBuilder.CheckBoxColumnBuilder<T,,V> EmfSelectionTableSectionBuilder.ColumnBuilder<T,,V> EmfSelectionTableSectionBuilder.ElementsBuilder<T,,V> EmfSelectionTableSectionBuilder.IPropertyBuilder<T,,V> EmfSelectionTableSectionBuilder.SelectionFeatureBuilder<T,V>
- Enclosing class:
EmfSelectionTableSectionBuilder
public static class EmfSelectionTableSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
extends Object
implements EmfSelectionTableSectionBuilder.IPropertyBuilder<T,V>, EmfSelectionTableSectionBuilder.SelectionFeatureBuilder<T,V>, EmfSelectionTableSectionBuilder.CheckBoxColumnBuilder<T,V>, EmfSelectionTableSectionBuilder.ColumnBuilder<T,V>
Implementation of the builder steps.
-
Method Summary
Modifier and TypeMethodDescriptioncheckBoxColumn(String name) Sets the header of the check box column.Adds the columns of the table.<E extends org.eclipse.emf.ecore.EObject>
EmfSelectionTableSectionBuilder.ElementsBuilder<E, V> container(org.eclipse.core.databinding.observable.value.IObservableValue<E> container) Replaces the page object with another object.static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfSelectionTableSectionBuilder.IPropertyBuilder<T1, V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> container, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates a builder of the section in the parent.Sets the list of elements.index(int index) Sets the position of the section on the page.selectionFeature(org.eclipse.emf.ecore.EStructuralFeature selectionFeature) Sets the many-valued feature of the object that keeps the selected elements.
-
Method Details
-
create
public static <T1 extends org.eclipse.emf.ecore.EObject,V1> EmfSelectionTableSectionBuilder.IPropertyBuilder<T1,V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> container, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates a builder of the section in the parent. The container holds the page object. actionAfterCreateSectionInProperty adds the created section to the page. -
index
Description copied from interface:EmfSelectionTableSectionBuilder.IPropertyBuilderSets the position of the section on the page. By default, the index is -1 and the section goes to the end.- Specified by:
indexin interfaceEmfSelectionTableSectionBuilder.IPropertyBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
container
public <E extends org.eclipse.emf.ecore.EObject> EmfSelectionTableSectionBuilder.ElementsBuilder<E,V> container(org.eclipse.core.databinding.observable.value.IObservableValue<E> container) Description copied from interface:EmfSelectionTableSectionBuilder.IPropertyBuilderReplaces the page object with another object. The table changes selectionFeature of this object. Call this method before elements.- Specified by:
containerin interfaceEmfSelectionTableSectionBuilder.IPropertyBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
elements
public EmfSelectionTableSectionBuilder.SelectionFeatureBuilder<T,V> elements(org.eclipse.core.databinding.observable.list.IObservableList<V> elements) Description copied from interface:EmfSelectionTableSectionBuilder.ElementsBuilderSets the list of elements. Each element is one row of the table.- Specified by:
elementsin interfaceEmfSelectionTableSectionBuilder.ElementsBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
selectionFeature
public EmfSelectionTableSectionBuilder.CheckBoxColumnBuilder<T,V> selectionFeature(org.eclipse.emf.ecore.EStructuralFeature selectionFeature) Description copied from interface:EmfSelectionTableSectionBuilder.SelectionFeatureBuilderSets the many-valued feature of the object that keeps the selected elements. The elements of the feature have the same type as the table rows.- Specified by:
selectionFeaturein interfaceEmfSelectionTableSectionBuilder.SelectionFeatureBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
checkBoxColumn
Description copied from interface:EmfSelectionTableSectionBuilder.CheckBoxColumnBuilderSets the header of the check box column.- Specified by:
checkBoxColumnin interfaceEmfSelectionTableSectionBuilder.CheckBoxColumnBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
columns
Description copied from interface:EmfSelectionTableSectionBuilder.ColumnBuilderAdds the columns of the table. The check box column comes after them. The columns argument must not be null.- Specified by:
columnsin interfaceEmfSelectionTableSectionBuilder.ColumnBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-