public class InstanceTypeNameSWTRenderer extends TextControlSWTRenderer
Instance
Type Name
of EClassifier
.
It behaves like the normal TextControlSWTRenderer
but always returns false
for
isUnsettable()
. This is necessary as the
Instance Type
Name
feature is modeled as an unsettable attribute but internally behaves like a normal attribute.TextControlSWTRenderer.ModelToTargetUpdateStrategy, TextControlSWTRenderer.TargetToModelUpdateStrategy
CUSTOM_VARIANT
Constructor and Description |
---|
InstanceTypeNameSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
EMFFormsEditSupport emfFormsEditSupport)
Creates a new instance of
InstanceTypeNameSWTRenderer . |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isUnsettable()
Returns true if the control is unsettable.
|
bindValue, createBindings, createSWTControl, createTooltipBinding, getDefaultAlignment, getEMFFormsEditSupport, getTextMessage, getTextVariantID, getTextWidgetStyle, getUnsetText, setControlEnabled, setValidationColor, setValidationForegroundColor, useOnModifyDatabinding
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, dispose, getGridDescription, 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 InstanceTypeNameSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, EMFFormsEditSupport emfFormsEditSupport)
InstanceTypeNameSWTRenderer
.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
protected boolean isUnsettable() throws DatabindingFailedException
isUnsettable
in class SimpleControlSWTRenderer
DatabindingFailedException
- if the databinding failsSimpleControlSWTRenderer.isUnsettable()
Copyright © 2016. All rights reserved.