public class NumberControlSWTRenderer extends TextControlSWTRenderer
TextControlSWTRenderer.ModelToTargetUpdateStrategy, TextControlSWTRenderer.TargetToModelUpdateStrategy
CUSTOM_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 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 |
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, getEMFFormsEditSupport, getTextWidgetStyle, setControlEnabled, setValidationColor, setValidationForegroundColor, useOnModifyDatabinding
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, getGridDescription, isUnsettable, renderControl, setControlIdData
applyEnable, canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsDatabinding, getEMFFormsLabelProvider, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, notifyChange, postInit, render
applyReadOnly, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, preInit
checkRenderer, getReportService, getVElement, getViewModelContext
@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 ReportService
emfFormsDatabinding
- The EMFFormsDatabinding
emfFormsLabelProvider
- The EMFFormsLabelProvider
vtViewTemplateProvider
- The VTViewTemplateProvider
emfFormsEditSupport
- The EMFFormsEditSupport
localizationService
- The EMFFormsLocalizationService
localeProvider
- The EMFFormsLocaleProvider
protected int getDefaultAlignment()
TextControlSWTRenderer
getDefaultAlignment
in class TextControlSWTRenderer
protected String getTextVariantID()
TextControlSWTRenderer
getTextVariantID
in class TextControlSWTRenderer
protected String getTextMessage()
TextControlSWTRenderer
getTextMessage
in class TextControlSWTRenderer
protected org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.swt.widgets.Control control) throws DatabindingFailedException
SimpleControlSWTControlSWTRenderer
Bindings
for this controls.createBindings
in class TextControlSWTRenderer
control
- the Control
to create the binding forDatabindingFailedException
- if the creation of the bindings fails.protected String getUnsetText()
getUnsetText
in class TextControlSWTRenderer
TextControlSWTRenderer.getUnsetText()
protected void dispose()
dispose
in class SimpleControlSWTRenderer
SimpleControlSWTRenderer.dispose()
Copyright © 2016. All rights reserved.