Class ContainerDistributionSectionBuilder.Builder<T>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.ContainerDistributionSectionBuilder.Builder<T>
- All Implemented Interfaces:
ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T>,ContainerDistributionSectionBuilder.FinalBuilder<T>,ContainerDistributionSectionBuilder.LabelBuilder<T>,ContainerDistributionSectionBuilder.ParentBuilder<T>,ContainerDistributionSectionBuilder.ValueExtractorBuilder<T>,ICanBeNullBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,IContainerButtonBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,IContainerHandlerBuilder<T,,com.amalgamasimulation.randomdatamodel.Distribution, ContainerDistributionSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T>> IContainerVisibleEnableBuilder<T,,ContainerDistributionSectionBuilder.FinalBuilder<T>> ICreateBuilder<ITextSection<com.amalgamasimulation.randomdatamodel.Distribution>>,IDistributionSettingsBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,ILabelBuilder<ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T>>,ILabelPropertiesBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,IParentBuilder<ContainerDistributionSectionBuilder.ValueExtractorBuilder<T>>,IRealDistributionSettingsBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,ITextPropertiesBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,IToolTipBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>,IValueExtractorBuilder<T,,com.amalgamasimulation.randomdatamodel.Distribution, ContainerDistributionSectionBuilder.LabelBuilder<T>> IWithoutDefaultButtonBuilder<ContainerDistributionSectionBuilder.FinalBuilder<T>>
- Enclosing class:
ContainerDistributionSectionBuilder
public static class ContainerDistributionSectionBuilder.Builder<T>
extends Object
implements ContainerDistributionSectionBuilder.ParentBuilder<T>, ContainerDistributionSectionBuilder.ValueExtractorBuilder<T>, ContainerDistributionSectionBuilder.LabelBuilder<T>, ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T>, ContainerDistributionSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected final DistributionButtonPropertiesprotected intprotected final LabelPropertiesprotected final ContainerTextSection<T, com.amalgamasimulation.randomdatamodel.Distribution> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IContainerButtonProperties 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> ContainerDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1> ContainerDistributionSectionBuilder.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> ContainerDistributionSectionBuilder.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, com.amalgamasimulation.randomdatamodel.Distribution> valueExtractor) 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.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, com.amalgamasimulation.randomdatamodel.Distribution> 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) tooltips(com.amalgamasimulation.desktop.ui.dialogs.DistributionDialogToolTip tooltips) valueExtractor(Function<T, com.amalgamasimulation.randomdatamodel.Distribution> 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
-
labelProperties
-
actionAfterCreateSectionInProperty
protected BiConsumer<Integer,com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty -
index
protected int index
-
-
Method Details
-
create
public static <T1> ContainerDistributionSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
create
public static <T1> ContainerDistributionSectionBuilder.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> ContainerDistributionSectionBuilder.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, com.amalgamasimulation.randomdatamodel.Distribution> valueExtractor) -
parent
public ContainerDistributionSectionBuilder.ValueExtractorBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T>
-
valueExtractor
public ContainerDistributionSectionBuilder.LabelBuilder<T> valueExtractor(Function<T, com.amalgamasimulation.randomdatamodel.Distribution> valueExtractor) - Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,com.amalgamasimulation.randomdatamodel.Distribution, ContainerDistributionSectionBuilder.LabelBuilder<T>>
-
label
- Specified by:
labelin interfaceILabelBuilder<T>
-
label
public ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T> label(Function<T, String> label) - Specified by:
labelin interfaceIContainerLabelBuilder<T,ContainerDistributionSectionBuilder.ContainerHandlerBuilder<T>>
-
handler
public ContainerDistributionSectionBuilder.FinalBuilder<T> handler(BiConsumer<T, com.amalgamasimulation.randomdatamodel.Distribution> handler) - Specified by:
handlerin interfaceIContainerHandlerBuilder<T,com.amalgamasimulation.randomdatamodel.Distribution, ContainerDistributionSectionBuilder.FinalBuilder<T>>
-
create
- Specified by:
createin interfaceICreateBuilder<T>
-
tooltips
public ContainerDistributionSectionBuilder.FinalBuilder<T> tooltips(com.amalgamasimulation.desktop.ui.dialogs.DistributionDialogToolTip tooltips) - Specified by:
tooltipsin interfaceIDistributionSettingsBuilder<T>
-
leftBorder
- Specified by:
leftBorderin interfaceIRealDistributionSettingsBuilder<T>
-
rightBorder
- Specified by:
rightBorderin interfaceIRealDistributionSettingsBuilder<T>
-
additionalCheck
public ContainerDistributionSectionBuilder.FinalBuilder<T> additionalCheck(Predicate<com.amalgamasimulation.randomdatamodel.Distribution> additionalCheck) - Specified by:
additionalCheckin interfaceIDistributionSettingsBuilder<T>
-
withoutDefaultButton
-
canBeNull
-
addDefaultButton
protected void addDefaultButton()Adds the default button before the other buttons, unlesswithoutDefaultButton()was called. -
textProperties
public ContainerDistributionSectionBuilder.FinalBuilder<T> textProperties(TextProperties textProperties) -
addButton
public ContainerDistributionSectionBuilder.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 ContainerDistributionSectionBuilder.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.
-