Class EMFTextEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.EMFTextEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
EMFTextEditingSupport.EditedFeatureBuilder<T,,E, R> EMFTextEditingSupport.FinalBuilder<T,,E, R> EMFTextEditingSupport.StrategyBuilder<T,E, R>
- Enclosing class:
EMFTextEditingSupport
public static class EMFTextEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
extends Object
implements EMFTextEditingSupport.EditedFeatureBuilder<T,E,R>, EMFTextEditingSupport.FinalBuilder<T,E,R>, EMFTextEditingSupport.StrategyBuilder<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>>
EMFTextEditingSupport.EditedFeatureBuilder<T1, E1, R1> create(R1 columnDescriptor) feature(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> listener) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonstrategy(ValidationStrategy<E, String> strategy) Set a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor.
-
Method Details
-
create
public static <T1,E1, EMFTextEditingSupport.EditedFeatureBuilder<T1,R1 extends IEMFColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
feature
public EMFTextEditingSupport.StrategyBuilder<T,E, featureR> (org.eclipse.emf.ecore.EStructuralFeature feature) Description copied from interface:EMFTextEditingSupport.EditedFeatureBuilderSet the feature pointing to the field that is being edited (a field in template class) - Specified by:
featurein interfaceEMFTextEditingSupport.EditedFeatureBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
feature- structural feature- Returns:
- builder object
-
strategy
Description copied from interface:EMFTextEditingSupport.StrategyBuilderSet a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor.- Specified by:
strategyin interfaceEMFTextEditingSupport.StrategyBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
strategy-- Returns:
- builder object
-
handler
Description copied from interface:EMFTextEditingSupport.FinalBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceEMFTextEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
canEdit
Description copied from interface:EMFTextEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceEMFTextEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:EMFTextEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceEMFTextEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>>
-