Class ContainerRealDistributionSectionBuilder.Builder<T>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.ContainerRealDistributionSectionBuilder.Builder<T>
- All Implemented Interfaces:
ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T>,ContainerRealDistributionSectionBuilder.FinalBuilder<T>,ContainerRealDistributionSectionBuilder.LabelBuilder<T>,ContainerRealDistributionSectionBuilder.ParentBuilder<T>,ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<T>,ICanBeNullBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,IContainerButtonBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,IContainerHandlerBuilder<T,,org.apache.commons.math3.distribution.RealDistribution, ContainerRealDistributionSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T>> IContainerVisibleEnableBuilder<T,,ContainerRealDistributionSectionBuilder.FinalBuilder<T>> ICreateBuilder<ITextSection<org.apache.commons.math3.distribution.RealDistribution>>,ILabelBuilder<ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T>>,ILabelPropertiesBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,IParentBuilder<ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<T>>,IRealDistributionSettingsBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,ITextPropertiesBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,IToolTipBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>,IValidationStrategyBuilder<org.apache.commons.math3.distribution.RealDistribution,,ContainerRealDistributionSectionBuilder.FinalBuilder<T>> IValueExtractorBuilder<T,,org.apache.commons.math3.distribution.RealDistribution, ContainerRealDistributionSectionBuilder.LabelBuilder<T>> IWithoutDefaultButtonBuilder<ContainerRealDistributionSectionBuilder.FinalBuilder<T>>
- Enclosing class:
ContainerRealDistributionSectionBuilder
public static class ContainerRealDistributionSectionBuilder.Builder<T>
extends Object
implements ContainerRealDistributionSectionBuilder.ParentBuilder<T>, ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<T>, ContainerRealDistributionSectionBuilder.LabelBuilder<T>, ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T>, ContainerRealDistributionSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected final RealDistributionButtonPropertiesprotected intprotected final LabelPropertiesprotected final ContainerTextSection<T, org.apache.commons.math3.distribution.RealDistribution> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IContainerButtonProperties buttonProperties) protected voidAdds the default button before the other buttons, unlesswithoutDefaultButton()was called.protected voidPasses the created section to the property page.canBeNull(BooleanSupplier canBeNull) ITextSection<org.apache.commons.math3.distribution.RealDistribution> create()static <T1> ContainerRealDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1> ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<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> ContainerRealDistributionSectionBuilder.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, Function<T1, org.apache.commons.math3.distribution.RealDistribution> valueExtractor) protected ITextSection<org.apache.commons.math3.distribution.RealDistribution> Passes the label and text field settings to the section, creates it and adds it to the property page.protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.getThis()Returns this builder as its final step.handler(BiConsumer<T, org.apache.commons.math3.distribution.RealDistribution> handler) labelProperties(LabelProperties labelProperties) leftBorder(double leftBorder) 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) validationStrategy(ValidationStrategy<org.apache.commons.math3.distribution.RealDistribution, String> strategy) valueExtractor(Function<T, org.apache.commons.math3.distribution.RealDistribution> valueExtractor) 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.IContainerButtonBuilder
addButton, addButtonIfMethods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IContainerVisibleEnableBuilder
enabled, visibleMethods 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 ContainerTextSection<T,org.apache.commons.math3.distribution.RealDistribution> 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> ContainerRealDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
create
public static <T1> ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<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> ContainerRealDistributionSectionBuilder.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, Function<T1, org.apache.commons.math3.distribution.RealDistribution> valueExtractor) -
parent
public ContainerRealDistributionSectionBuilder.ValueExtractorBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T>
-
valueExtractor
public ContainerRealDistributionSectionBuilder.LabelBuilder<T> valueExtractor(Function<T, org.apache.commons.math3.distribution.RealDistribution> valueExtractor) - Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,org.apache.commons.math3.distribution.RealDistribution, ContainerRealDistributionSectionBuilder.LabelBuilder<T>>
-
label
- Specified by:
labelin interfaceILabelBuilder<T>
-
label
public ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T> label(Function<T, String> label) - Specified by:
labelin interfaceIContainerLabelBuilder<T,ContainerRealDistributionSectionBuilder.ContainerHandlerBuilder<T>>
-
handler
public ContainerRealDistributionSectionBuilder.FinalBuilder<T> handler(BiConsumer<T, org.apache.commons.math3.distribution.RealDistribution> handler) - Specified by:
handlerin interfaceIContainerHandlerBuilder<T,org.apache.commons.math3.distribution.RealDistribution, ContainerRealDistributionSectionBuilder.FinalBuilder<T>>
-
create
- Specified by:
createin interfaceICreateBuilder<T>
-
leftBorder
- Specified by:
leftBorderin interfaceIRealDistributionSettingsBuilder<T>
-
rightBorder
- Specified by:
rightBorderin interfaceIRealDistributionSettingsBuilder<T>
-
validationStrategy
public ContainerRealDistributionSectionBuilder.FinalBuilder<T> validationStrategy(ValidationStrategy<org.apache.commons.math3.distribution.RealDistribution, String> strategy) - Specified by:
validationStrategyin interfaceIValidationStrategyBuilder<org.apache.commons.math3.distribution.RealDistribution,ContainerRealDistributionSectionBuilder.FinalBuilder<T>>
-
withoutDefaultButton
-
canBeNull
-
addDefaultButton
protected void addDefaultButton()Adds the default button before the other buttons, unlesswithoutDefaultButton()was called. -
textProperties
public ContainerRealDistributionSectionBuilder.FinalBuilder<T> textProperties(TextProperties textProperties) -
addButton
public ContainerRealDistributionSectionBuilder.FinalBuilder<T> addButton(IContainerButtonProperties buttonProperties) -
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 ContainerRealDistributionSectionBuilder.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.
-