public abstract class SimpleControlSWTControlSWTRenderer extends SimpleControlSWTRenderer
Controls
.CUSTOM_VARIANT
Constructor and Description |
---|
SimpleControlSWTControlSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.core.databinding.Binding[] |
createBindings(org.eclipse.swt.widgets.Control control)
Create the
Bindings for this controls. |
protected org.eclipse.swt.widgets.Control |
createControl(org.eclipse.swt.widgets.Composite parent)
Creates the control itself.
|
protected abstract org.eclipse.swt.widgets.Control |
createSWTControl(org.eclipse.swt.widgets.Composite parent)
Creates the Control.
|
protected org.eclipse.emf.ecore.EStructuralFeature |
getFeature()
Retrieves the associated
EStructuralFeature of this renderer. |
protected void |
rootDomainModelChanged()
This method is called in
AbstractControlSWTRenderer.notifyChange() when the root domain model of the view model context changes. |
protected org.eclipse.core.databinding.UpdateValueStrategy |
withPreSetValidation(org.eclipse.core.databinding.UpdateValueStrategy delegate)
Create a
PreSetValidationStrategy . |
applyReadOnly, applyValidation, createControlCell, createDefaultUnsettableStyleProperty, createLabelCell, createValidationCell, dispose, getGridDescription, getLabelWidth, getUnsettableStyleProperty, getUnsetText, isUnsettable, renderControl, setControlEnabled, setControlIdData, setValidationColor, setValidationForegroundColor
applyEnable, applyUnchangeableFeature, canHandleControlProcessor, createLabel, createValidationIcon, defaultHandleControlProcessor, defaultHandleControlProcessorForCell, getDataBindingContext, getEditingDomain, getEMFFormsDatabinding, getEMFFormsLabelProvider, getLabelStyleBits, getModelValue, getValidationBackgroundColor, getValidationForegroundColor, getValidationIcon, getVTViewTemplateProvider, hasLeftLabelAlignment, isUnchangeableFeature, notifyChange, postInit, render
applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, preInit, scrollToReveal, scrollToReveal
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
public SimpleControlSWTControlSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- The ReportService
emfFormsDatabinding
- The EMFFormsDatabinding
emfFormsLabelProvider
- The EMFFormsLabelProvider
vtViewTemplateProvider
- The VTViewTemplateProvider
protected final org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent) throws DatabindingFailedException
createControl
in class SimpleControlSWTRenderer
parent
- the Composite
to render ontoDatabindingFailedException
- if the databinding of the control failsprotected void rootDomainModelChanged() throws DatabindingFailedException
AbstractControlSWTRenderer.notifyChange()
when the root domain model of the view model context changes.rootDomainModelChanged
in class SimpleControlSWTRenderer
DatabindingFailedException
- If the databinding failedAbstractControlSWTRenderer.rootDomainModelChanged()
protected org.eclipse.core.databinding.UpdateValueStrategy withPreSetValidation(org.eclipse.core.databinding.UpdateValueStrategy delegate) throws DatabindingFailedException
PreSetValidationStrategy
.delegate
- a delegate UpdateValueStrategy
PreSetValidationStrategy
DatabindingFailedException
- in case the necessary feature can not be obtainedprotected org.eclipse.emf.ecore.EStructuralFeature getFeature() throws DatabindingFailedException
EStructuralFeature
of this renderer.DatabindingFailedException
- in case the necessary feature can not be obtainedprotected abstract org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.swt.widgets.Control control) throws DatabindingFailedException
Bindings
for this controls.control
- the Control
to create the binding forDatabindingFailedException
- if the creation of the bindings fails.protected abstract org.eclipse.swt.widgets.Control createSWTControl(org.eclipse.swt.widgets.Composite parent) throws DatabindingFailedException
parent
- the Composite
to use as a parentDatabindingFailedException
- if the creation of the control fails due to databinding problemsCopyright © 2019. All rights reserved.