public class NumberControlSWTRenderer extends TextControlSWTRenderer
TextControlSWTRenderer.ModelToTargetUpdateStrategy, TextControlSWTRenderer.TargetToModelUpdateStrategyCUSTOM_VARIANT| Constructor and Description |
|---|
NumberControlSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
EMFFormsEditSupport emfFormsEditSupport,
EMFFormsLocalizationService localizationService,
EMFFormsLocaleProvider localeProvider)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Object |
convert(org.eclipse.swt.widgets.Text text,
org.eclipse.emf.ecore.EDataType attributeType,
String value)
Convert the given value from target to model.
|
protected org.eclipse.core.databinding.Binding[] |
createBindings(org.eclipse.swt.widgets.Control control)
Create the
Bindings for this controls. |
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected int |
getDefaultAlignment()
Return the default alignment value for this renderer.
|
protected String |
getTextFromTextField(org.eclipse.swt.widgets.Text text,
org.eclipse.emf.ecore.EDataType attributeType)
Gets the text displayed in the textfield.
|
protected String |
getTextMessage()
Returns the text which should be set as the message text on the Text field.
|
protected String |
getTextVariantID()
The VariantId to use e.g.
|
protected String |
getUnsetText()
Provide the unset text to show on the label when value is unset.
|
bindValue, createSWTControl, createTooltipBinding, getControlCompositeFromControl, getEMFFormsEditSupport, getTextWidgetStyle, isUnsetButtonLeftOfControlComposite, setControlEnabled, setValidationColor, setValidationForegroundColor, useOnModifyDatabindingcreateControl, getFeature, rootDomainModelChanged, withPreSetValidationapplyReadOnly, applyValidation, createControlCell, createDefaultUnsettableStyleProperty, createLabelCell, createValidationCell, getGridDescription, getLabelWidth, getUnsettableStyleProperty, isUnsettable, renderControl, setControlIdDataapplyEnable, applyUnchangeableFeature, canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsDatabinding, getEMFFormsLabelProvider, getLabelStyleBits, getModelValue, getValidationBackgroundColor, getValidationBackgroundColor, getValidationForegroundColor, getValidationForegroundColor, getValidationIcon, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, isUnchangeableFeature, notifyChange, postInit, renderapplyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, preInit, scrollToReveal, scrollToRevealcheckRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register@Inject public NumberControlSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, EMFFormsEditSupport emfFormsEditSupport, EMFFormsLocalizationService localizationService, EMFFormsLocaleProvider localeProvider)
vElement - the view model element to be renderedviewContext - the view contextreportService - The ReportServiceemfFormsDatabinding - The EMFFormsDatabindingemfFormsLabelProvider - The EMFFormsLabelProvidervtViewTemplateProvider - The VTViewTemplateProvideremfFormsEditSupport - The EMFFormsEditSupportlocalizationService - The EMFFormsLocalizationServicelocaleProvider - The EMFFormsLocaleProviderprotected int getDefaultAlignment()
TextControlSWTRenderergetDefaultAlignment in class TextControlSWTRendererprotected String getTextVariantID()
TextControlSWTRenderergetTextVariantID in class TextControlSWTRendererprotected String getTextMessage()
TextControlSWTRenderergetTextMessage in class TextControlSWTRendererprotected Object convert(org.eclipse.swt.widgets.Text text, org.eclipse.emf.ecore.EDataType attributeType, String value) throws DatabindingFailedException
TextControlSWTRendererconvert in class TextControlSWTRenderertext - the Text controlattributeType - the model data typevalue - the target value to convertDatabindingFailedException - in case the databinding failedprotected org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.swt.widgets.Control control)
throws DatabindingFailedException
SimpleControlSWTControlSWTRendererBindings for this controls.createBindings in class TextControlSWTRenderercontrol - the Control to create the binding forDatabindingFailedException - if the creation of the bindings fails.protected String getTextFromTextField(org.eclipse.swt.widgets.Text text, org.eclipse.emf.ecore.EDataType attributeType)
TextControlSWTRenderergetTextFromTextField in class TextControlSWTRenderertext - the TextattributeType - the EDataTypeTextprotected String getUnsetText()
getUnsetText in class TextControlSWTRendererTextControlSWTRenderer.getUnsetText()protected void dispose()
dispose in class SimpleControlSWTRendererSimpleControlSWTRenderer.dispose()Copyright © 2020. All rights reserved.