public class DataTypeControl extends SimpleControlJFaceViewerSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
DataTypeControl(VControl vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLabelProvider emfFormsLabelProvider,
VTViewTemplateProvider vtViewTemplateProvider)
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.
|
protected boolean |
isUnsettable()
Returns true if the control is unsettable.
|
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, dispose, getGridDescription, 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 DataTypeControl(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 String getUnsetText()
SimpleControlSWTRenderer
getUnsetText
in class SimpleControlSWTRenderer
protected org.eclipse.jface.viewers.Viewer createJFaceViewer(org.eclipse.swt.widgets.Composite parent)
SimpleControlJFaceViewerSWTRenderer
Viewer
.createJFaceViewer
in class SimpleControlJFaceViewerSWTRenderer
parent
- the Composite
to use as a parentViewer
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 boolean isUnsettable()
SimpleControlSWTRenderer
isUnsettable
in class SimpleControlSWTRenderer
Copyright © 2016. All rights reserved.