Class ObjectTextSectionBuilder.Builder<T,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.ObjectTextSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
IContainerButtonBuilder<ObjectTextSectionBuilder.FinalBuilder<T,,V>> IContainerLabelBuilder<T,,ObjectTextSectionBuilder.FormatBuilder<T, V>> IContainerVisibleEnableBuilder<T,,ObjectTextSectionBuilder.FinalBuilder<T, V>> ICreateBuilder<ITextSection<V>>,IFormatBuilder<V,,ObjectTextSectionBuilder.FinalBuilder<T, V>> ILabelBuilder<ObjectTextSectionBuilder.FormatBuilder<T,,V>> ILabelPropertiesBuilder<ObjectTextSectionBuilder.FinalBuilder<T,,V>> IParentBuilder<ObjectTextSectionBuilder.ValueExtractorBuilder<T,,V>> ITextPropertiesBuilder<ObjectTextSectionBuilder.FinalBuilder<T,,V>> IToolTipBuilder<ObjectTextSectionBuilder.FinalBuilder<T,,V>> IValueExtractorBuilder<T,,V, ObjectTextSectionBuilder.LabelBuilder<T, V>> ObjectTextSectionBuilder.FinalBuilder<T,,V> ObjectTextSectionBuilder.FormatBuilder<T,,V> ObjectTextSectionBuilder.LabelBuilder<T,,V> ObjectTextSectionBuilder.ParentBuilder<T,,V> ObjectTextSectionBuilder.ValueExtractorBuilder<T,V>
- Enclosing class:
ObjectTextSectionBuilder
public static class ObjectTextSectionBuilder.Builder<T,V>
extends Object
implements ObjectTextSectionBuilder.ParentBuilder<T,V>, ObjectTextSectionBuilder.ValueExtractorBuilder<T,V>, ObjectTextSectionBuilder.LabelBuilder<T,V>, ObjectTextSectionBuilder.FormatBuilder<T,V>, ObjectTextSectionBuilder.FinalBuilder<T,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final ContainerTextSection<T, V> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IContainerButtonProperties buttonProperties) protected voidPasses the created section to the property page.create()static <T1,V1> ObjectTextSectionBuilder.ParentBuilder <T1, V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) protected ITextSection<V> 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 ObjectTextSectionBuilder.FinalBuilder<T, V> getThis()Returns this builder as its final step.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) textProperties(TextProperties textProperties) toolTip(ToolTipProperties tooltip) valueExtractor(Function<T, V> 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.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, toolTip
-
Field Details
-
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,V1> ObjectTextSectionBuilder.ParentBuilder<T1,V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
parent
public ObjectTextSectionBuilder.ValueExtractorBuilder<T,V> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T>
-
valueExtractor
- Specified by:
valueExtractorin interfaceIValueExtractorBuilder<T,V, ObjectTextSectionBuilder.LabelBuilder<T, V>>
-
format
- Specified by:
formatin interfaceIFormatBuilder<T,V>
-
label
- Specified by:
labelin interfaceILabelBuilder<T>
-
create
- Specified by:
createin interfaceICreateBuilder<T>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T,V>
-
textProperties
-
addButton
public ObjectTextSectionBuilder.FinalBuilder<T,V> 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
-
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.
-