public class EReferenceLabelControlSWTRenderer extends SimpleControlSWTControlSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
EReferenceLabelControlSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.core.databinding.Binding[] |
createBindings(org.eclipse.swt.widgets.Control control)
Create the
Bindings for this controls. |
protected org.eclipse.swt.widgets.Control |
createSWTControl(org.eclipse.swt.widgets.Composite parent2)
Creates the Control.
|
void |
dispose()
Disposes all resources used by the renderer.
|
protected String |
getUnsetText()
Provide the unset text to show on the label when value is unset.
|
createControl, rootDomainModelChanged
applyValidation, createControlCell, createLabelCell, createValidationCell, 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
public EReferenceLabelControlSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- The ReportService
protected org.eclipse.core.databinding.Binding[] createBindings(org.eclipse.swt.widgets.Control control) throws DatabindingFailedException
Bindings
for this controls.createBindings
in class SimpleControlSWTControlSWTRenderer
control
- the Control
to create the binding forDatabindingFailedException
- if the creation of the bindings fails.org.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTControlSWTRenderer#createBindings(org.eclipse.swt.widgets.Control,
org.eclipse.emf.ecore.EStructuralFeature.Setting)
protected org.eclipse.swt.widgets.Control createSWTControl(org.eclipse.swt.widgets.Composite parent2) throws DatabindingFailedException
createSWTControl
in class SimpleControlSWTControlSWTRenderer
parent2
- the Composite
to use as a parentDatabindingFailedException
- if the creation of the control fails due to databinding problemsorg.eclipse.emf.ecp.view.spi.core.swt.SimpleControlSWTControlSWTRenderer#createSWTControl(org.eclipse.swt.widgets.Composite,
org.eclipse.emf.ecore.EStructuralFeature.Setting)
protected String getUnsetText()
getUnsetText
in class SimpleControlSWTRenderer
SimpleControlSWTRenderer.getUnsetText()
public void dispose()
SimpleControlSWTRenderer
dispose
in class SimpleControlSWTRenderer
AbstractSWTRenderer.dispose()
Copyright © 2017. All rights reserved.