Class EMFTextIdEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.EMFTextIdEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
EMFTextIdEditingSupport.ElementsBuilder<T,,E, R> EMFTextIdEditingSupport.FinalBuilder<T,,E, R> EMFTextIdEditingSupport.IdFeatureBuilder<T,E, R>
- Enclosing class:
EMFTextIdEditingSupport
public static class EMFTextIdEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
extends Object
implements EMFTextIdEditingSupport.ElementsBuilder<T,E,R>, EMFTextIdEditingSupport.IdFeatureBuilder<T,E,R>, EMFTextIdEditingSupport.FinalBuilder<T,E,R>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.Set function that returns a value that indicates whether the cell can be editedstatic <T1,E1, R1 extends IEMFColumn<T1, E1, R1>>
EMFTextIdEditingSupport.ElementsBuilder<T1, E1, R1> create(R1 columnDescriptor) Set the list of elements among whose identifiers the validation of the entered value will be performedhandler(BiConsumer<T, E> listener) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonidFeature(org.eclipse.emf.ecore.EStructuralFeature feature) Set the identifier function to point to the field identifier by which the uniqueness of the entered value will be checked.
-
Method Details
-
create
public static <T1,E1, EMFTextIdEditingSupport.ElementsBuilder<T1,R1 extends IEMFColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
elements
public EMFTextIdEditingSupport.IdFeatureBuilder<T,E, elementsR> (org.eclipse.core.databinding.observable.list.IObservableList<T> elements) Description copied from interface:EMFTextIdEditingSupport.ElementsBuilderSet the list of elements among whose identifiers the validation of the entered value will be performed- Specified by:
elementsin interfaceEMFTextIdEditingSupport.ElementsBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
elements- list of elements- Returns:
- builder object
-
idFeature
public EMFTextIdEditingSupport.FinalBuilder<T,E, idFeatureR> (org.eclipse.emf.ecore.EStructuralFeature feature) Description copied from interface:EMFTextIdEditingSupport.IdFeatureBuilderSet the identifier function to point to the field identifier by which the uniqueness of the entered value will be checked.- Specified by:
idFeaturein interfaceEMFTextIdEditingSupport.IdFeatureBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
feature- structural feature- Returns:
- builder object
-
handler
Description copied from interface:EMFTextIdEditingSupport.FinalBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceEMFTextIdEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
canEdit
Description copied from interface:EMFTextIdEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceEMFTextIdEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:EMFTextIdEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceEMFTextIdEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>>
-