public class EnumComboViewerSWTRenderer extends SimpleControlJFaceViewerSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
EnumComboViewerSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider,
EMFFormsEditSupport emfFormsEditSupport)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.databinding.Binding[] |
createBindings(org.eclipse.jface.viewers.Viewer viewer)
Create the
Bindings for this controls. |
protected org.eclipse.jface.viewers.Viewer |
createJFaceViewer(org.eclipse.swt.widgets.Composite parent)
Creates the
Viewer . |
protected String |
getUnsetText()
Provide the unset text to show on the label when value is unset.
|
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, dispose, getGridDescription, isUnsettable, renderControl, setControlEnabled, setControlIdData, setValidationColor, setValidationForegroundColor
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 EnumComboViewerSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLabelProvider emfFormsLabelProvider, VTViewTemplateProvider vtViewTemplateProvider, EMFFormsEditSupport emfFormsEditSupport)
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 org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.jface.viewers.Viewer viewer) throws DatabindingFailedException
SimpleControlJFaceViewerSWTRenderer
Bindings
for this controls.createBindings
in class SimpleControlJFaceViewerSWTRenderer
viewer
- the Viewer
to create the binding forDatabindingFailedException
- if the creation of the bindings failedprotected org.eclipse.jface.viewers.Viewer createJFaceViewer(org.eclipse.swt.widgets.Composite parent) throws DatabindingFailedException
Viewer
.createJFaceViewer
in class SimpleControlJFaceViewerSWTRenderer
parent
- the Composite
to use as a parentViewer
DatabindingFailedException
- if the databinding failsSimpleControlJFaceViewerSWTRenderer.createJFaceViewer(org.eclipse.swt.widgets.Composite)
protected String getUnsetText()
getUnsetText
in class SimpleControlSWTRenderer
SimpleControlSWTRenderer.getUnsetText()
Copyright © 2016. All rights reserved.