Class EmfObjectViewSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.builders.EmfObjectViewSectionBuilder.Builder<T,V>
- All Implemented Interfaces:
EmfObjectViewSectionBuilder.FinalBuilder<T,,V> EmfObjectViewSectionBuilder.FormatBuilder<T,,V> EmfObjectViewSectionBuilder.LabelBuilder<T,,V> IContainerFormatBuilder<T,,V, EmfObjectViewSectionBuilder.FinalBuilder<T, V>> IContainerLabelBuilder<T,,EmfObjectViewSectionBuilder.FormatBuilder<T, V>> IContainerVisibleEnableBuilder<T,,EmfObjectViewSectionBuilder.FinalBuilder<T, V>> ICreateBuilder<ITextSection<V>>,IEmfChangesObservableBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,,V>> IEmfObservableBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,,V>> ILabelBuilder<EmfObjectViewSectionBuilder.FormatBuilder<T,,V>> ILabelPropertiesBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,,V>> ITextPropertiesBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,,V>> IToolTipBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,,V>> IViewButtonBuilder<EmfObjectViewSectionBuilder.FinalBuilder<T,V>>
- Enclosing class:
EmfObjectViewSectionBuilder
public static class EmfObjectViewSectionBuilder.Builder<T extends org.eclipse.emf.ecore.EObject,V>
extends Object
implements EmfObjectViewSectionBuilder.LabelBuilder<T,V>, EmfObjectViewSectionBuilder.FormatBuilder<T,V>, EmfObjectViewSectionBuilder.FinalBuilder<T,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BiConsumer<Integer, com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> protected intprotected final LabelPropertiesprotected final EmfViewSection<T, V> protected final TextProperties -
Method Summary
Modifier and TypeMethodDescriptionaddButton(IViewButtonProperties buttonProperties) protected voidPasses the created section to the property page.create()protected ITextSection<V> Passes the label and text field settings to the section, creates it and adds it to the property page.format(BiFunction<T, V, String> format) protected org.eclipse.core.databinding.observable.value.IObservableValue<T> Returns the container of the section.protected EmfObjectViewSectionBuilder.FinalBuilder<T, V> getThis()Returns this builder as its final step.labelProperties(LabelProperties labelProperties) observableClassChanges(Class<?>... classes) observableFeatureChanges(org.eclipse.emf.ecore.EStructuralFeature... features) observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) 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.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.IViewButtonBuilder
addButton, addButtonIf
-
Field Details
-
textProperties
-
section
-
labelProperties
-
actionAfterCreateSectionInProperty
protected BiConsumer<Integer,com.amalgamasimulation.desktop.ui.editor.sections.internal.Section> actionAfterCreateSectionInProperty -
index
protected int index
-
-
Method Details
-
getThis
Returns this builder as its final step. -
label
- Specified by:
labelin interfaceILabelBuilder<T extends org.eclipse.emf.ecore.EObject>
-
label
- Specified by:
labelin interfaceIContainerLabelBuilder<T extends org.eclipse.emf.ecore.EObject,V>
-
format
- Specified by:
formatin interfaceIContainerFormatBuilder<T extends org.eclipse.emf.ecore.EObject,V, EmfObjectViewSectionBuilder.FinalBuilder<T extends org.eclipse.emf.ecore.EObject, V>>
-
observableFeatures
public EmfObjectViewSectionBuilder.FinalBuilder<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) - Specified by:
observableFeaturesin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeaturePaths
public EmfObjectViewSectionBuilder.FinalBuilder<T,V> observableFeaturePaths(org.eclipse.emf.databinding.FeaturePath... observableFeaturePaths) - Specified by:
observableFeaturePathsin interfaceIEmfObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableFeatureChanges
public EmfObjectViewSectionBuilder.FinalBuilder<T,V> observableFeatureChanges(org.eclipse.emf.ecore.EStructuralFeature... features) - Specified by:
observableFeatureChangesin interfaceIEmfChangesObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
observableClassChanges
- Specified by:
observableClassChangesin interfaceIEmfChangesObservableBuilder<T extends org.eclipse.emf.ecore.EObject>
-
create
- Specified by:
createin interfaceICreateBuilder<T extends org.eclipse.emf.ecore.EObject>
-
textProperties
-
addButton
public EmfObjectViewSectionBuilder.FinalBuilder<T,V> addButton(IViewButtonProperties 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 EmfObjectViewSectionBuilder.FinalBuilder<T,V> 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.
-