Class EmfComboBoxSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfComboBoxSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
EmfComboBoxSectionBuilder.EmfFormatBuilder<T,,V> EmfComboBoxSectionBuilder.FeatureBuilder<T,,V> EmfComboBoxSectionBuilder.FinalBuilder<T,,V> EmfComboBoxSectionBuilder.LabelBuilder<T,,V> EmfComboBoxSectionBuilder.ListElementsBuilder<T,,V> EmfComboBoxSectionBuilder.ParentBuilder<T,,V> ICanBeNullBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,,V>> IComboBoxPropertiesBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,,V>> IContainerFormatBuilder<T,,V, EmfComboBoxSectionBuilder.FinalBuilder<T, V>> IContainerHandlerBuilder<T,,V, EmfComboBoxSectionBuilder.FinalBuilder<T, V>> IContainerLabelBuilder<T,,EmfComboBoxSectionBuilder.ListElementsBuilder<T, V>> IContainerVisibleEnableBuilder<T,,EmfComboBoxSectionBuilder.FinalBuilder<T, V>> ICreateBuilder<IComboBoxSection<V>>,IEmfButtonBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,,V>> IEmfFormatBuilder<T,,V, EmfComboBoxSectionBuilder.FinalBuilder<T, V>> IEmfObservableBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,,V>> IFeatureBuilder<EmfComboBoxSectionBuilder.LabelBuilder<T,,V>> IFilterComparatorBuilder<V,,EmfComboBoxSectionBuilder.FinalBuilder<T, V>> ILabelBuilder<EmfComboBoxSectionBuilder.ListElementsBuilder<T,,V>> ILabelPropertiesBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,,V>> IListElementsBuilder<V,,EmfComboBoxSectionBuilder.EmfFormatBuilder<T, V>> IParentBuilder<EmfComboBoxSectionBuilder.FeatureBuilder<T,,V>> ISelectFromTableButtonBuilder<V,,EmfComboBoxSectionBuilder.FinalBuilder<T, V>> IToolTipBuilder<EmfComboBoxSectionBuilder.FinalBuilder<T,V>>
- Enclosing class:
EmfComboBoxSectionBuilder
public static class EmfComboBoxSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
extends Object
implements EmfComboBoxSectionBuilder.ParentBuilder<T,V>, EmfComboBoxSectionBuilder.FeatureBuilder<T,V>, EmfComboBoxSectionBuilder.LabelBuilder<T,V>, EmfComboBoxSectionBuilder.ListElementsBuilder<T,V>, EmfComboBoxSectionBuilder.EmfFormatBuilder<T,V>, EmfComboBoxSectionBuilder.FinalBuilder<T,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected final ComboBoxPropertiesprotected intprotected final LabelPropertiesprotected final EmfComboBoxSection<T, V> -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IButtonProperties buttonProperties) protected voidPasses the created section to the property page.canBeNull(BooleanSupplier canBeNull) comboBoxProperties(ComboBoxProperties comboBoxProperties) comparator(Comparator<V> comparator) create()static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfComboBoxSectionBuilder.ParentBuilder<T1, V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfComboBoxSectionBuilder.FeatureBuilder<T1, V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index) static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfComboBoxSectionBuilder.LabelBuilder<T1, V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index, org.eclipse.emf.ecore.EStructuralFeature feature) protected IComboBoxSection<V> Passes the label and combobox settings to the section, creates it and adds it to the property page.feature(org.eclipse.emf.ecore.EStructuralFeature feature) format(BiFunction<T, V, String> format) format(org.eclipse.emf.ecore.EStructuralFeature featureName) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected EmfComboBoxSectionBuilder.FinalBuilder<T, V> getThis()Returns this builder as its final step.handler(BiConsumer<T, V> handler) labelProperties(LabelProperties labelProperties) observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) parent(org.eclipse.swt.widgets.Composite parent) selectFromTableButton(Consumer<Table<V>> columns) protected voidsetEnabled(Predicate<T> enabled) protected voidprotected voidprotected voidsetPage(org.eclipse.swt.widgets.Composite parent, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index) Places the section on a property page: the page gives the parent, the position and the action that adds the section.protected voidsetParent(org.eclipse.swt.widgets.Composite parent) protected voidsetVisible(Predicate<T> visible) toolTip(ToolTipProperties tooltip) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IComboBoxPropertiesBuilder
comboBoxPropertiesMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IContainerVisibleEnableBuilder
enabled, visibleMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IEmfButtonBuilder
addButton, addButtonIfMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.ILabelPropertiesBuilder
labelPropertiesMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IToolTipBuilder
toolTip, toolTip
-
Field Details
-
comboBoxProperties
-
section
-
labelProperties
-
actionAfterCreateSectionInProperty
protected BiConsumer<Integer,com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty -
index
protected int index
-
-
Method Details
-
create
public static <T1 extends org.eclipse.emf.ecore.EObject,V1> EmfComboBoxSectionBuilder.FeatureBuilder<T1,V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index) -
create
public static <T1 extends org.eclipse.emf.ecore.EObject,V1> EmfComboBoxSectionBuilder.LabelBuilder<T1,V1> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index, org.eclipse.emf.ecore.EStructuralFeature feature) -
create
public static <T1 extends org.eclipse.emf.ecore.EObject,V1> EmfComboBoxSectionBuilder.ParentBuilder<T1,V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
parent
public EmfComboBoxSectionBuilder.FeatureBuilder<T,V> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T extends org.eclipse.emf.ecore.EObject>
-
feature
public EmfComboBoxSectionBuilder.LabelBuilder<T,V> feature(org.eclipse.emf.ecore.EStructuralFeature feature) - Specified by:
featurein interfaceIFeatureBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceILabelBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
elements
- Specified by:
elementsin interfaceIListElementsBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
format
- Specified by:
formatin interfaceIContainerFormatBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfComboBoxSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
format
public EmfComboBoxSectionBuilder.FinalBuilder<T,V> format(org.eclipse.emf.ecore.EStructuralFeature featureName) - Specified by:
formatin interfaceIEmfFormatBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfComboBoxSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfComboBoxSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
create
- Specified by:
createin interfaceICreateBuilder<T extends org.eclipse.emf.ecore.EObject>
-
filter
- Specified by:
filterin interfaceIFilterComparatorBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
comparator
- Specified by:
comparatorin interfaceIFilterComparatorBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
canBeNull
- Specified by:
canBeNullin interfaceICanBeNullBuilder<T extends org.eclipse.emf.ecore.EObject>
-
selectFromTableButton
public EmfComboBoxSectionBuilder.FinalBuilder<T,V> selectFromTableButton(Consumer<Table<V>> columns) - Specified by:
selectFromTableButtonin interfaceISelectFromTableButtonBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
observableFeatures
public EmfComboBoxSectionBuilder.FinalBuilder<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfComboBoxSectionBuilder.FinalBuilder<T,V> observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) - Specified by:
observableFeaturePathsin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
comboBoxProperties
public EmfComboBoxSectionBuilder.FinalBuilder<T,V> comboBoxProperties(ComboBoxProperties comboBoxProperties) -
addButton
-
getContainer
Returns the container of the section. -
setVisible
-
setEnabled
-
createSection
Passes the label and combobox settings to the section, creates it and adds it to the property page. -
labelProperties
-
toolTip
-
toolTip
-
visible
-
enabled
-
setParent
protected void setParent(org.eclipse.swt.widgets.Composite parent) -
setPage
protected void setPage(org.eclipse.swt.widgets.Composite parent, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty, int index) Places the section on a property page: the page gives the parent, the position and the action that adds the section. -
setLabel
-
setLabel
-
addToPage
protected void addToPage()Passes the created section to the property page. Does nothing outside a page.
-