Class ContainerCheckBoxSectionBuilder.Builder<T>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.ContainerCheckBoxSectionBuilder.Builder<T>
- All Implemented Interfaces:
ContainerCheckBoxSectionBuilder.ContainerHandlerBuilder<T>,ContainerCheckBoxSectionBuilder.FinalBuilder<T>,ContainerCheckBoxSectionBuilder.LabelBuilder<T>,ContainerCheckBoxSectionBuilder.ParentBuilder<T>,ContainerCheckBoxSectionBuilder.ValueExtractorBuilder<T>,IContainerHandlerBuilder<T,,Boolean, ContainerCheckBoxSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,ContainerCheckBoxSectionBuilder.ContainerHandlerBuilder<T>> IContainerVisibleEnableBuilder<T,,ContainerCheckBoxSectionBuilder.FinalBuilder<T>> ICreateBuilder<ISection>,ILabelBuilder<ContainerCheckBoxSectionBuilder.ContainerHandlerBuilder<T>>,ILabelPropertiesBuilder<ContainerCheckBoxSectionBuilder.FinalBuilder<T>>,IParentBuilder<ContainerCheckBoxSectionBuilder.ValueExtractorBuilder<T>>,IToolTipBuilder<ContainerCheckBoxSectionBuilder.FinalBuilder<T>>,IValueExtractorBuilder<T,Boolean, ContainerCheckBoxSectionBuilder.LabelBuilder<T>>
- Enclosing class:
ContainerCheckBoxSectionBuilder
public static class ContainerCheckBoxSectionBuilder.Builder<T>
extends Object
implements ContainerCheckBoxSectionBuilder.ParentBuilder<T>, ContainerCheckBoxSectionBuilder.ValueExtractorBuilder<T>, ContainerCheckBoxSectionBuilder.LabelBuilder<T>, ContainerCheckBoxSectionBuilder.ContainerHandlerBuilder<T>, ContainerCheckBoxSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final ContainerCheckBoxSection<T> -
Method Summary
Modifier and TypeMethodDescriptionprotected voidPasses the created section to the property page.create()static <T1> ContainerCheckBoxSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1> ContainerCheckBoxSectionBuilder.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> ContainerCheckBoxSectionBuilder.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, Boolean> valueExtractor) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected ContainerCheckBoxSectionBuilder.FinalBuilder<T> getThis()Returns this builder as its final step.handler(BiConsumer<T, Boolean> handler) labelProperties(LabelProperties labelProperties) parent(org.eclipse.swt.widgets.Composite parent) 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) toolTip(ToolTipProperties tooltip) valueExtractor(Function<T, Boolean> 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.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.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> ContainerCheckBoxSectionBuilder.ParentBuilder<T1> 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
-
create
public static <T1> ContainerCheckBoxSectionBuilder.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> ContainerCheckBoxSectionBuilder.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, Boolean> valueExtractor) -
parent
public ContainerCheckBoxSectionBuilder.ValueExtractorBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T>
-
valueExtractor
public ContainerCheckBoxSectionBuilder.LabelBuilder<T> valueExtractor(Function<T, Boolean> valueExtractor) - Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,Boolean, ContainerCheckBoxSectionBuilder.LabelBuilder<T>>
-
label
- Specified by:
labelin interfaceILabelBuilder<T>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T,ContainerCheckBoxSectionBuilder.ContainerHandlerBuilder<T>>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T,Boolean, ContainerCheckBoxSectionBuilder.FinalBuilder<T>>
-
create
- Specified by:
createin interfaceICreateBuilder<T>
-
labelProperties
public ContainerCheckBoxSectionBuilder.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.
-