Class ContainerSpinnerSectionBuilder.PropertyBuilder<T,V,R>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.interfaces.AbstractPropertyBuilder<T>
com.amalgamasimulation.desktop.ui.editor.builders.ContainerSpinnerSectionBuilder.PropertyBuilder<T,V,R>
- Type Parameters:
T- type of the object in the container of the pageV- type of the valueR- step after the label
- All Implemented Interfaces:
ContainerSpinnerSectionBuilder.IPropertyBuilder<T,,V, R> IIndexBuilder<ContainerSpinnerSectionBuilder.IPropertyBuilder<T,,V, R>> IValueExtractorBuilder<T,V, ContainerSpinnerSectionBuilder.LabelBuilder<T, R>>
- Enclosing class:
ContainerSpinnerSectionBuilder
public static class ContainerSpinnerSectionBuilder.PropertyBuilder<T,V,R>
extends AbstractPropertyBuilder<T>
implements ContainerSpinnerSectionBuilder.IPropertyBuilder<T,V,R>
First step of a section on a page.
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.ui.editor.builders.interfaces.AbstractPropertyBuilder
actionAfterCreateSectionInProperty, containerOld, index, parent -
Method Summary
Modifier and TypeMethodDescriptioncontainer(org.eclipse.core.databinding.observable.value.IObservableValue<E> container) Binds the section to another container instead of the container of the page.static <T1,V1> ContainerSpinnerSectionBuilder.IPropertyBuilder <T1, V1, ContainerSpinnerSectionBuilder.ConverterBuilder<T1, V1>> create(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for a value of any type on a page.static <T1> ContainerSpinnerSectionBuilder.IPropertyBuilder<T1, Double, ContainerSpinnerSectionBuilder.DigitsRangeBuilder<T1, Double>> createDouble(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for a Double on a page.static <T1> ContainerSpinnerSectionBuilder.IPropertyBuilder<T1, Integer, ContainerSpinnerSectionBuilder.RangeBuilder<T1, Integer>> createInteger(org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for an Integer on a page.index(int index) valueExtractor(Function<T, V> valueExtractor)
-
Method Details
-
createInteger
public static <T1> ContainerSpinnerSectionBuilder.IPropertyBuilder<T1,Integer, createIntegerContainerSpinnerSectionBuilder.RangeBuilder<T1, Integer>> (org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for an Integer on a page.- Type Parameters:
T1- type of the object in the container- Parameters:
parent- composite of the page for sectionscontainerOld- container of the pageactionAfterCreateSectionInProperty- adds the created section to the page- Returns:
- the first step of the builder
-
createDouble
public static <T1> ContainerSpinnerSectionBuilder.IPropertyBuilder<T1,Double, createDoubleContainerSpinnerSectionBuilder.DigitsRangeBuilder<T1, Double>> (org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for a Double on a page.- Type Parameters:
T1- type of the object in the container- Parameters:
parent- composite of the page for sectionscontainerOld- container of the pageactionAfterCreateSectionInProperty- adds the created section to the page- Returns:
- the first step of the builder
-
create
public static <T1,V1> ContainerSpinnerSectionBuilder.IPropertyBuilder<T1,V1, createContainerSpinnerSectionBuilder.ConverterBuilder<T1, V1>> (org.eclipse.swt.widgets.Composite parent, org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerOld, BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty) Creates the first step of a section for a value of any type on a page.- Type Parameters:
T1- type of the object in the containerV1- type of the value- Parameters:
parent- composite of the page for sectionscontainerOld- container of the pageactionAfterCreateSectionInProperty- adds the created section to the page- Returns:
- the first step of the builder
-
container
public <E> ContainerSpinnerSectionBuilder.ValueExtractorBuilder<E,V, containerR> (org.eclipse.core.databinding.observable.value.IObservableValue<E> container) Description copied from interface:ContainerSpinnerSectionBuilder.IPropertyBuilderBinds the section to another container instead of the container of the page.- Specified by:
containerin interfaceContainerSpinnerSectionBuilder.IPropertyBuilder<T,V, R> - Type Parameters:
E- type of the object in the container- Parameters:
container- container with the edited object- Returns:
- the next step of the builder
-
valueExtractor
public ContainerSpinnerSectionBuilder.LabelBuilder<T,R> valueExtractor(Function<T, V> valueExtractor) - Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,V, R>
-
index
- Specified by:
indexin interfaceIIndexBuilder<T>
-