Class EmfTextSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfTextSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
EmfTextSectionBuilder.FeatureBuilder<T,,V> EmfTextSectionBuilder.FinalBuilder<T,,V> EmfTextSectionBuilder.LabelBuilder<T,,V> EmfTextSectionBuilder.ParentBuilder<T,,V> EmfTextSectionBuilder.ValidationStrategyBuilder<T,,V> IContainerHandlerBuilder<T,,V, EmfTextSectionBuilder.FinalBuilder<T, V>> IContainerLabelBuilder<T,,EmfTextSectionBuilder.ValidationStrategyBuilder<T, V>> IContainerVisibleEnableBuilder<T,,EmfTextSectionBuilder.FinalBuilder<T, V>> ICreateBuilder<ITextSection<V>>,IEmfButtonBuilder<EmfTextSectionBuilder.FinalBuilder<T,,V>> IEmfObservableBuilder<EmfTextSectionBuilder.FinalBuilder<T,,V>> IFeatureBuilder<EmfTextSectionBuilder.LabelBuilder<T,,V>> ILabelBuilder<EmfTextSectionBuilder.ValidationStrategyBuilder<T,,V>> ILabelPropertiesBuilder<EmfTextSectionBuilder.FinalBuilder<T,,V>> IParentBuilder<EmfTextSectionBuilder.FeatureBuilder<T,,V>> ITextPropertiesBuilder<EmfTextSectionBuilder.FinalBuilder<T,,V>> IToolTipBuilder<EmfTextSectionBuilder.FinalBuilder<T,,V>> IValidationStrategyBuilder<V,EmfTextSectionBuilder.FinalBuilder<T, V>>
- Enclosing class:
EmfTextSectionBuilder
public static class EmfTextSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
extends Object
implements EmfTextSectionBuilder.ParentBuilder<T,V>, EmfTextSectionBuilder.FeatureBuilder<T,V>, EmfTextSectionBuilder.LabelBuilder<T,V>, EmfTextSectionBuilder.ValidationStrategyBuilder<T,V>, EmfTextSectionBuilder.FinalBuilder<T,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final EmfTextSection<T, V> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IButtonProperties buttonProperties) protected voidPasses the created section to the property page.create()static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfTextSectionBuilder.ParentBuilder<T1, V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1 extends org.eclipse.emf.ecore.EObject,V1>
EmfTextSectionBuilder.FeatureBuilder<T1, V1> 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 extends org.eclipse.emf.ecore.EObject,V1>
EmfTextSectionBuilder.LabelBuilder<T1, V1> 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, org.eclipse.emf.ecore.EStructuralFeature feature) protected ITextSection<V> Passes the label and text field settings to the section, creates it and adds it to the property page.feature(org.eclipse.emf.ecore.EStructuralFeature feature) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected EmfTextSectionBuilder.FinalBuilder<T, V> getThis()Returns this builder as its final step.handler(BiConsumer<T, V> handler) labelProperties(LabelProperties labelProperties) observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) 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<V, String> strategy) 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.IEmfButtonBuilder
addButton, addButtonIfMethods 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 extends org.eclipse.emf.ecore.EObject,V1> EmfTextSectionBuilder.ParentBuilder<T1,V1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) -
getThis
Returns this builder as its final step. -
create
public static <T1 extends org.eclipse.emf.ecore.EObject,V1> EmfTextSectionBuilder.FeatureBuilder<T1,V1> 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 extends org.eclipse.emf.ecore.EObject,V1> EmfTextSectionBuilder.LabelBuilder<T1,V1> 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, org.eclipse.emf.ecore.EStructuralFeature feature) -
parent
- Specified by:
parentin interfaceIParentBuilder<T extends org.eclipse.emf.ecore.EObject>
-
feature
public EmfTextSectionBuilder.LabelBuilder<T,V> feature(org.eclipse.emf.ecore.EStructuralFeature feature) - Specified by:
featurein interfaceIFeatureBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceILabelBuilder<T extends org.eclipse.emf.ecore.EObject>
-
validationStrategy
public EmfTextSectionBuilder.FinalBuilder<T,V> validationStrategy(ValidationStrategy<V, String> strategy) - Specified by:
validationStrategyin interfaceIValidationStrategyBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfTextSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
create
- Specified by:
createin interfaceICreateBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeatures
public EmfTextSectionBuilder.FinalBuilder<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfTextSectionBuilder.FinalBuilder<T,V> observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) - Specified by:
observableFeaturePathsin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
textProperties
-
addButton
-
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.
-