Class EmfStringIdSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfStringIdSectionBuilder.Builder<T>
- All Implemented Interfaces:
EmfStringIdSectionBuilder.FeatureIdBuilder<T>,EmfStringIdSectionBuilder.FinalBuilder<T>,EmfStringIdSectionBuilder.LabelBuilder<T>,EmfStringIdSectionBuilder.ListElementsBuilder<T>,EmfStringIdSectionBuilder.ParentBuilder<T>,IContainerHandlerBuilder<T,,String, EmfStringIdSectionBuilder.FinalBuilder<T>> IContainerLabelBuilder<T,,EmfStringIdSectionBuilder.FinalBuilder<T>> IContainerVisibleEnableBuilder<T,,EmfStringIdSectionBuilder.FinalBuilder<T>> ICreateBuilder<ITextSection<String>>,IEmfButtonBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>,IEmfObservableBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>,IFeatureIdBuilder<EmfStringIdSectionBuilder.ListElementsBuilder<T>>,ILabelBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>,ILabelPropertiesBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>,IListElementsForIdBuilder<T,,EmfStringIdSectionBuilder.LabelBuilder<T>> IParentBuilder<EmfStringIdSectionBuilder.FeatureIdBuilder<T>>,ITextPropertiesBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>,IToolTipBuilder<EmfStringIdSectionBuilder.FinalBuilder<T>>
- Enclosing class:
EmfStringIdSectionBuilder
public static class EmfStringIdSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject>
extends Object
implements EmfStringIdSectionBuilder.ParentBuilder<T>, EmfStringIdSectionBuilder.FeatureIdBuilder<T>, EmfStringIdSectionBuilder.ListElementsBuilder<T>, EmfStringIdSectionBuilder.LabelBuilder<T>, EmfStringIdSectionBuilder.FinalBuilder<T>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final EmfTextSection<T, String> 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>
EmfStringIdSectionBuilder.ParentBuilder<T1> create(org.eclipse.core.databinding.observable.value.IObservableValue<T1> containerObservable) static <T1 extends org.eclipse.emf.ecore.EObject>
EmfStringIdSectionBuilder.FeatureIdBuilder<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 extends org.eclipse.emf.ecore.EObject>
EmfStringIdSectionBuilder.ListElementsBuilder<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, org.eclipse.emf.ecore.EStructuralFeature featureId) protected ITextSection<String> Passes the label and text field settings to the section, creates it and adds it to the property page.featureId(org.eclipse.emf.ecore.EStructuralFeature featureId) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected EmfStringIdSectionBuilder.FinalBuilder<T> getThis()Returns this builder as its final step.handler(BiConsumer<T, String> 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) 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> EmfStringIdSectionBuilder.ParentBuilder<T1> 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> EmfStringIdSectionBuilder.FeatureIdBuilder<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 extends org.eclipse.emf.ecore.EObject> EmfStringIdSectionBuilder.ListElementsBuilder<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, org.eclipse.emf.ecore.EStructuralFeature featureId) -
parent
public EmfStringIdSectionBuilder.FeatureIdBuilder<T> parent(org.eclipse.swt.widgets.Composite parent) - Specified by:
parentin interfaceIParentBuilder<T extends org.eclipse.emf.ecore.EObject>
-
featureId
public EmfStringIdSectionBuilder.ListElementsBuilder<T> featureId(org.eclipse.emf.ecore.EStructuralFeature featureId) - Specified by:
featureIdin interfaceIFeatureIdBuilder<T extends org.eclipse.emf.ecore.EObject>
-
elements
- Specified by:
elementsin interfaceIListElementsForIdBuilder<T extends org.eclipse.emf.ecore.EObject,EmfStringIdSectionBuilder.LabelBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
elements
- Specified by:
elementsin interfaceIListElementsForIdBuilder<T extends org.eclipse.emf.ecore.EObject,EmfStringIdSectionBuilder.LabelBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
label
- Specified by:
labelin interfaceILabelBuilder<T extends org.eclipse.emf.ecore.EObject>
-
handler
- Specified by:
handlerin interfaceIContainerHandlerBuilder<T extends org.eclipse.emf.ecore.EObject,String, EmfStringIdSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
create
- Specified by:
createin interfaceICreateBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeatures
public EmfStringIdSectionBuilder.FinalBuilder<T> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfStringIdSectionBuilder.FinalBuilder<T> 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,EmfStringIdSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject>>
-
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.
-