Class ContainerLocalTimeSectionBuilder.Builder<T>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.ContainerLocalTimeSectionBuilder.Builder<T>
- All Implemented Interfaces:
ContainerLocalTimeSectionBuilder.ContainerHandlerBuilder<T>,ContainerLocalTimeSectionBuilder.FinalBuilder<T>,ContainerLocalTimeSectionBuilder.LabelBuilder<T>,ContainerLocalTimeSectionBuilder.ParentBuilder<T>,ContainerLocalTimeSectionBuilder.ValueExtractorBuilder<T>,ICanBeNullBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,IContainerButtonBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,IContainerHandlerBuilder<T,,LocalTime, ContainerLocalTimeSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,ContainerLocalTimeSectionBuilder.ContainerHandlerBuilder<T>> IContainerVisibleEnableBuilder<T,,ContainerLocalTimeSectionBuilder.FinalBuilder<T>> ICreateBuilder<ITextSection<LocalTime>>,ILabelBuilder<ContainerLocalTimeSectionBuilder.ContainerHandlerBuilder<T>>,ILabelPropertiesBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,INewLocalTimeBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,IParentBuilder<ContainerLocalTimeSectionBuilder.ValueExtractorBuilder<T>>,ITextPropertiesBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,IToolTipBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>,IValidationStrategyBuilder<LocalTime,,ContainerLocalTimeSectionBuilder.FinalBuilder<T>> IValueExtractorBuilder<T,,LocalTime, ContainerLocalTimeSectionBuilder.LabelBuilder<T>> IWithoutDefaultButtonBuilder<ContainerLocalTimeSectionBuilder.FinalBuilder<T>>
- Enclosing class:
ContainerLocalTimeSectionBuilder
public static class ContainerLocalTimeSectionBuilder.Builder<T>
extends Object
implements ContainerLocalTimeSectionBuilder.ParentBuilder<T>, ContainerLocalTimeSectionBuilder.ValueExtractorBuilder<T>, ContainerLocalTimeSectionBuilder.LabelBuilder<T>, ContainerLocalTimeSectionBuilder.ContainerHandlerBuilder<T>, ContainerLocalTimeSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected final LocalTimeButtonPropertiesprotected intprotected final LabelPropertiesprotected final ContainerTextSection<T, LocalTime> 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) create()static <T1> ContainerLocalTimeSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1> ContainerLocalTimeSectionBuilder.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> ContainerLocalTimeSectionBuilder.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, LocalTime> valueExtractor) protected ITextSection<LocalTime> 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.protected ContainerLocalTimeSectionBuilder.FinalBuilder<T> getThis()Returns this builder as its final step.handler(BiConsumer<T, LocalTime> handler) labelProperties(LabelProperties labelProperties) newLocalTime(Supplier<LocalTime> newLocalTime) 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) textProperties(TextProperties textProperties) toolTip(ToolTipProperties tooltip) validationStrategy(ValidationStrategy<LocalTime, String> strategy) valueExtractor(Function<T, LocalTime> 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> ContainerLocalTimeSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
create
public static <T1> ContainerLocalTimeSectionBuilder.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> ContainerLocalTimeSectionBuilder.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, LocalTime> valueExtractor) -
parent
public ContainerLocalTimeSectionBuilder.ValueExtractorBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T>
-
valueExtractor
public ContainerLocalTimeSectionBuilder.LabelBuilder<T> valueExtractor(Function<T, LocalTime> valueExtractor) - Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,LocalTime, ContainerLocalTimeSectionBuilder.LabelBuilder<T>>
-
label
- Specified by:
labelin interfaceILabelBuilder<T>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T,LocalTime, ContainerLocalTimeSectionBuilder.FinalBuilder<T>>
-
create
- Specified by:
createin interfaceICreateBuilder<T>
-
newLocalTime
public ContainerLocalTimeSectionBuilder.FinalBuilder<T> newLocalTime(Supplier<LocalTime> newLocalTime) - Specified by:
newLocalTimein interfaceINewLocalTimeBuilder<T>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T,ContainerLocalTimeSectionBuilder.ContainerHandlerBuilder<T>>
-
validationStrategy
public ContainerLocalTimeSectionBuilder.FinalBuilder<T> validationStrategy(ValidationStrategy<LocalTime, String> strategy) - Specified by:
validationStrategyin interfaceIValidationStrategyBuilder<LocalTime,ContainerLocalTimeSectionBuilder.FinalBuilder<T>>
-
withoutDefaultButton
-
canBeNull
-
addDefaultButton
protected void addDefaultButton()Adds the default button before the other buttons, unlesswithoutDefaultButton()was called. -
textProperties
public ContainerLocalTimeSectionBuilder.FinalBuilder<T> textProperties(TextProperties textProperties) -
addButton
public ContainerLocalTimeSectionBuilder.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 ContainerLocalTimeSectionBuilder.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.
-