Class EmfDistributionSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfDistributionSectionBuilder.Builder<T>
- All Implemented Interfaces:
EmfDistributionSectionBuilder.FeatureBuilder<T>,EmfDistributionSectionBuilder.FinalBuilder<T>,EmfDistributionSectionBuilder.LabelBuilder<T>,EmfDistributionSectionBuilder.ParentBuilder<T>,ICanBeNullBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IContainerHandlerBuilder<T,,com.amalgamasimulation.randomdatamodel.Distribution, EmfDistributionSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,EmfDistributionSectionBuilder.FinalBuilder<T>> IContainerVisibleEnableBuilder<T,,EmfDistributionSectionBuilder.FinalBuilder<T>> ICreateBuilder<ITextSection<com.amalgamasimulation.randomdatamodel.Distribution>>,IDistributionSettingsBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IEmfButtonBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IEmfObservableBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IFeatureBuilder<EmfDistributionSectionBuilder.LabelBuilder<T>>,ILabelBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,ILabelPropertiesBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IParentBuilder<EmfDistributionSectionBuilder.FeatureBuilder<T>>,IRealDistributionSettingsBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,ITextPropertiesBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IToolTipBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>,IWithoutDefaultButtonBuilder<EmfDistributionSectionBuilder.FinalBuilder<T>>
- Enclosing class:
EmfDistributionSectionBuilder
public static class EmfDistributionSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject>
extends Object
implements EmfDistributionSectionBuilder.ParentBuilder<T>, EmfDistributionSectionBuilder.FeatureBuilder<T>, EmfDistributionSectionBuilder.LabelBuilder<T>, EmfDistributionSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected final DistributionButtonPropertiesprotected intprotected final LabelPropertiesprotected final EmfTextSection<T, com.amalgamasimulation.randomdatamodel.Distribution> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IButtonProperties buttonProperties) protected voidAdds the default button before the other buttons, unlesswithoutDefaultButton()was called.additionalCheck(Predicate<com.amalgamasimulation.randomdatamodel.Distribution> additionalCheck) protected voidPasses the created section to the property page.canBeNull(BooleanSupplier canBeNull) ITextSection<com.amalgamasimulation.randomdatamodel.Distribution> create()static <T1 extends org.eclipse.emf.ecore.EObject>
EmfDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1 extends org.eclipse.emf.ecore.EObject>
EmfDistributionSectionBuilder.FeatureBuilder<T1> 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>
EmfDistributionSectionBuilder.LabelBuilder<T1> 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 ITextSection<com.amalgamasimulation.randomdatamodel.Distribution> Passes the label and text field settings to the section, creates it and adds it to the property page.feature(org.eclipse.emf.ecore.EStructuralFeature feature) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected EmfDistributionSectionBuilder.FinalBuilder<T> getThis()Returns this builder as its final step.handler(BiConsumer<T, com.amalgamasimulation.randomdatamodel.Distribution> handler) labelProperties(LabelProperties labelProperties) leftBorder(double leftBorder) observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) parent(org.eclipse.swt.widgets.Composite parent) rightBorder(double rightBorder) 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) tooltips(com.amalgamasimulation.desktop.ui.dialogs.DistributionDialogToolTip tooltips) 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.ICanBeNullBuilder
canBeNullMethods 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.ITextPropertiesBuilder
textPropertiesMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IToolTipBuilder
toolTip, toolTipMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IWithoutDefaultButtonBuilder
withoutDefaultButton
-
Field Details
-
buttonProperties
-
textProperties
-
section
protected final EmfTextSection<T extends org.eclipse.emf.ecore.EObject,com.amalgamasimulation.randomdatamodel.Distribution> 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> EmfDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
create
public static <T1 extends org.eclipse.emf.ecore.EObject> EmfDistributionSectionBuilder.FeatureBuilder<T1> 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> EmfDistributionSectionBuilder.LabelBuilder<T1> 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) -
parent
public EmfDistributionSectionBuilder.FeatureBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T extends org.eclipse.emf.ecore.EObject>
-
feature
public EmfDistributionSectionBuilder.LabelBuilder<T> 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>
-
handler
public EmfDistributionSectionBuilder.FinalBuilder<T> handler(BiConsumer<T, com.amalgamasimulation.randomdatamodel.Distribution> handler) - Specified by:
handlerin interfaceIContainerHandlerBuilder<T extends org.eclipse.emf.ecore.EObject,com.amalgamasimulation.randomdatamodel.Distribution, EmfDistributionSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
create
- Specified by:
createin interfaceICreateBuilder<T extends org.eclipse.emf.ecore.EObject>
-
tooltips
public EmfDistributionSectionBuilder.FinalBuilder<T> tooltips(com.amalgamasimulation.desktop.ui.dialogs.DistributionDialogToolTip tooltips) - Specified by:
tooltipsin interfaceIDistributionSettingsBuilder<T extends org.eclipse.emf.ecore.EObject>
-
leftBorder
- Specified by:
leftBorderin interfaceIRealDistributionSettingsBuilder<T extends org.eclipse.emf.ecore.EObject>
-
rightBorder
- Specified by:
rightBorderin interfaceIRealDistributionSettingsBuilder<T extends org.eclipse.emf.ecore.EObject>
-
additionalCheck
public EmfDistributionSectionBuilder.FinalBuilder<T> additionalCheck(Predicate<com.amalgamasimulation.randomdatamodel.Distribution> additionalCheck) - Specified by:
additionalCheckin interfaceIDistributionSettingsBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeatures
public EmfDistributionSectionBuilder.FinalBuilder<T> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfDistributionSectionBuilder.FinalBuilder<T> observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) - Specified by:
observableFeaturePathsin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T extends org.eclipse.emf.ecore.EObject,EmfDistributionSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
withoutDefaultButton
-
canBeNull
-
addDefaultButton
protected void addDefaultButton()Adds the default button before the other buttons, unlesswithoutDefaultButton()was called. -
textProperties
-
addButton
-
getContainer
Returns the container of the section. -
setVisible
-
setEnabled
-
createSection
Passes the label and text field settings to the section, creates it and adds it to the property page. -
labelProperties
public EmfDistributionSectionBuilder.FinalBuilder<T> 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.
-