Class EmfAutoCompleteSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfAutoCompleteSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
EmfAutoCompleteSectionBuilder.EmfFormatBuilder<T,,V> EmfAutoCompleteSectionBuilder.FeatureBuilder<T,,V> EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V> EmfAutoCompleteSectionBuilder.LabelBuilder<T,,V> EmfAutoCompleteSectionBuilder.ListElementsBuilder<T,,V> EmfAutoCompleteSectionBuilder.ParentBuilder<T,,V> ICanBeNullBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IContainerFormatBuilder<T,,V, EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> IContainerHandlerBuilder<T,,V, EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> IContainerLabelBuilder<T,,EmfAutoCompleteSectionBuilder.ListElementsBuilder<T, V>> IContainerVisibleEnableBuilder<T,,EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> ICreateBuilder<ITextSection<V>>,IEmfButtonBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IEmfFormatBuilder<T,,V, EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> IEmfObservableBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IFeatureBuilder<EmfAutoCompleteSectionBuilder.LabelBuilder<T,,V>> IFilterComparatorBuilder<V,,EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> ILabelBuilder<EmfAutoCompleteSectionBuilder.ListElementsBuilder<T,,V>> ILabelPropertiesBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IListElementsBuilder<V,,EmfAutoCompleteSectionBuilder.EmfFormatBuilder<T, V>> INullElementBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IParentBuilder<EmfAutoCompleteSectionBuilder.FeatureBuilder<T,,V>> ISelectFromTableButtonBuilder<V,,EmfAutoCompleteSectionBuilder.FinalBuilder<T, V>> ITextPropertiesBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,,V>> IToolTipBuilder<EmfAutoCompleteSectionBuilder.FinalBuilder<T,V>>
- Enclosing class:
EmfAutoCompleteSectionBuilder
public static class EmfAutoCompleteSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
extends Object
implements EmfAutoCompleteSectionBuilder.ParentBuilder<T,V>, EmfAutoCompleteSectionBuilder.FeatureBuilder<T,V>, EmfAutoCompleteSectionBuilder.LabelBuilder<T,V>, EmfAutoCompleteSectionBuilder.ListElementsBuilder<T,V>, EmfAutoCompleteSectionBuilder.EmfFormatBuilder<T,V>, EmfAutoCompleteSectionBuilder.FinalBuilder<T,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final EmfAutoCompleteSection<T, V> -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IButtonProperties buttonProperties) protected voidPasses the created section to the property page.canBeNull(BooleanSupplier canBeNull) comparator(Comparator<V> comparator) create()static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfAutoCompleteSectionBuilder.ParentBuilder<T1, V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfAutoCompleteSectionBuilder.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>
EmfAutoCompleteSectionBuilder.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) enableNullElement(String nullElementText) 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 EmfAutoCompleteSectionBuilder.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) textProperties(TextProperties textProperties) 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.IContainerVisibleEnableBuilder
enabled, visibleMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IEmfButtonBuilder
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
-
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> EmfAutoCompleteSectionBuilder.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> EmfAutoCompleteSectionBuilder.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> EmfAutoCompleteSectionBuilder.ParentBuilder<T1,V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
getContainer
Returns the container of the section. -
setVisible
-
setEnabled
-
parent
public EmfAutoCompleteSectionBuilder.FeatureBuilder<T,V> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T extends org.eclipse.emf.ecore.EObject>
-
feature
public EmfAutoCompleteSectionBuilder.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, EmfAutoCompleteSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
format
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> format(org.eclipse.emf.ecore.EStructuralFeature featureName) - Specified by:
formatin interfaceIEmfFormatBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfAutoCompleteSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfAutoCompleteSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
textProperties
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> textProperties(TextProperties textProperties) - Specified by:
textPropertiesin interfaceITextPropertiesBuilder<T extends org.eclipse.emf.ecore.EObject>
-
addButton
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> addButton(IButtonProperties buttonProperties) - Specified by:
addButtonin interfaceIEmfButtonBuilder<T extends org.eclipse.emf.ecore.EObject>
-
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>
-
enableNullElement
- Specified by:
enableNullElementin interfaceINullElementBuilder<T extends org.eclipse.emf.ecore.EObject>
-
selectFromTableButton
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> selectFromTableButton(Consumer<Table<V>> columns) - Specified by:
selectFromTableButtonin interfaceISelectFromTableButtonBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
observableFeatures
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) - Specified by:
observableFeaturePathsin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
labelProperties
public EmfAutoCompleteSectionBuilder.FinalBuilder<T,V> labelProperties(LabelProperties 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.
-