public abstract class SimpleControlJFaceViewerSWTRenderer extends SimpleControlSWTRenderer
Controls
which uses a Viewer
.CUSTOM_VARIANT
Constructor and Description |
---|
SimpleControlJFaceViewerSWTRenderer(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.jface.viewers.Viewer viewer)
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.jface.viewers.Viewer |
createJFaceViewer(org.eclipse.swt.widgets.Composite parent)
Creates the
Viewer . |
protected void |
rootDomainModelChanged()
This method is called in
AbstractControlSWTRenderer.notifyChange() when the root domain model of the view model context changes. |
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 SimpleControlJFaceViewerSWTRenderer(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 creation of the control fails due to failed databindingprotected 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 abstract org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.jface.viewers.Viewer viewer) throws DatabindingFailedException
Bindings
for this controls.viewer
- the Viewer
to create the binding forDatabindingFailedException
- if the creation of the bindings failedprotected abstract org.eclipse.jface.viewers.Viewer createJFaceViewer(org.eclipse.swt.widgets.Composite parent) throws DatabindingFailedException
Viewer
.parent
- the Composite
to use as a parentViewer
DatabindingFailedException
- if the databinding failsCopyright © 2019. All rights reserved.