Class EMFObjectSelectionDialogEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.EMFObjectSelectionDialogEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
EMFObjectSelectionDialogEditingSupport.ColumnsBuilder<T,,E, R> EMFObjectSelectionDialogEditingSupport.EditedFeatureBuilder<T,,E, R> EMFObjectSelectionDialogEditingSupport.ElementsBuilder<T,,E, R> EMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R>
- Enclosing class:
EMFObjectSelectionDialogEditingSupport
public static class EMFObjectSelectionDialogEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
extends Object
implements EMFObjectSelectionDialogEditingSupport.ElementsBuilder<T,E,R>, EMFObjectSelectionDialogEditingSupport.EditedFeatureBuilder<T,E,R>, EMFObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E,R>, EMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E,R>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.buttonText(String text) Set text for button, if the image is set, the text is not shownSet function that returns a value that indicates whether the cell can be editedcolumns(BiConsumer<T, Table<E>> columns) Set function that create columns in table in dialogSet function that create columns in table in dialogstatic <T1,E1, R1 extends IEMFColumn<T1, E1, R1>>
EMFObjectSelectionDialogEditingSupport.ElementsBuilder<T1, E1, R1> create(R1 columnDescriptor) dialogSubTitle(String subTitle) Set sub title for the dialogdialogTitle(String title) Set title for the dialogSet the elements to be shown in the selection dialogfeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set the feature pointing to the field that is being edited (a field in template class) handler(BiConsumer<T, E> handler) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonicon(org.eclipse.swt.graphics.Image image) Set image for button, if the image is set, the text is not shown
-
Field Details
-
columnDescriptor
-
editingSupport
-
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, EMFObjectSelectionDialogEditingSupport.ElementsBuilder<T1,R1 extends IEMFColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
elements
public EMFObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, elementsR> (org.eclipse.core.databinding.observable.list.IObservableList<E> elements) Description copied from interface:EMFObjectSelectionDialogEditingSupport.ElementsBuilderSet the elements to be shown in the selection dialog- Specified by:
elementsin interfaceEMFObjectSelectionDialogEditingSupport.ElementsBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
elements- list of elements- Returns:
- builder object
-
columns
public EMFObjectSelectionDialogEditingSupport.EditedFeatureBuilder<T,E, columnsR> (Consumer<Table<E>> columns) Description copied from interface:EMFObjectSelectionDialogEditingSupport.ColumnsBuilderSet function that create columns in table in dialog- Specified by:
columnsin interfaceEMFObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
columns-- Returns:
- builder object
-
columns
public EMFObjectSelectionDialogEditingSupport.EditedFeatureBuilder<T,E, columnsR> (BiConsumer<T, Table<E>> columns) Description copied from interface:EMFObjectSelectionDialogEditingSupport.ColumnsBuilderSet function that create columns in table in dialog- Specified by:
columnsin interfaceEMFObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
columns-- Returns:
- builder object
-
feature
public EMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, featureR> (org.eclipse.emf.ecore.EStructuralFeature feature) Description copied from interface:EMFObjectSelectionDialogEditingSupport.EditedFeatureBuilderSet the feature pointing to the field that is being edited (a field in template class) - Specified by:
featurein interfaceEMFObjectSelectionDialogEditingSupport.EditedFeatureBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
feature- structural feature- Returns:
- builder object
-
dialogTitle
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet title for the dialog- Specified by:
dialogTitlein interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
title- dialog title- Returns:
- builder object
-
dialogSubTitle
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet sub title for the dialog- Specified by:
dialogSubTitlein interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
subTitle- dialog sub title- Returns:
- builder object
-
handler
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
handler- function to be executed- Returns:
- builder object
-
icon
public EMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, iconR> (org.eclipse.swt.graphics.Image image) Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet image for button, if the image is set, the text is not shown- Specified by:
iconin interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
image-- Returns:
- builder object
-
buttonText
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet text for button, if the image is set, the text is not shown- Specified by:
buttonTextin interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
text-- Returns:
- builder object
-
canEdit
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:EMFObjectSelectionDialogEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceEMFObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>>
-