Class DistributionEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.DistributionEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
DistributionEditingSupport.EditedFeatureBuilder<T,,E, R> DistributionEditingSupport.FinalBuilder<T,E, R>
- Enclosing class:
DistributionEditingSupport
public static class DistributionEditingSupport.Builder<T,E,R extends IEMFColumn<T,E,R>>
extends Object
implements DistributionEditingSupport.EditedFeatureBuilder<T,E,R>, DistributionEditingSupport.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 editedstatic <T1,E1, R1 extends IEMFColumn<T1, E1, R1>>
DistributionEditingSupport.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) icon(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, DistributionEditingSupport.EditedFeatureBuilder<T1,R1 extends IEMFColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
feature
public DistributionEditingSupport.FinalBuilder<T,E, featureR> (org.eclipse.emf.ecore.EStructuralFeature feature) Description copied from interface:DistributionEditingSupport.EditedFeatureBuilderSet the feature pointing to the field that is being edited (a field in template class) - Specified by:
featurein interfaceDistributionEditingSupport.EditedFeatureBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
feature- structural feature- Returns:
- builder object
-
icon
Description copied from interface:DistributionEditingSupport.FinalBuilderSet image for button, if the image is set, the text is not shown- Specified by:
iconin interfaceDistributionEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
image-- Returns:
- builder object
-
buttonText
Description copied from interface:DistributionEditingSupport.FinalBuilderSet text for button, if the image is set, the text is not shown- Specified by:
buttonTextin interfaceDistributionEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
text-- Returns:
- builder object
-
canEdit
Description copied from interface:DistributionEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceDistributionEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:DistributionEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceDistributionEditingSupport.FinalBuilder<T,E, R extends IEMFColumn<T, E, R>>
-