public abstract class EditableEReferenceLabelControlSWTRenderer extends EReferenceLabelControlSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
EditableEReferenceLabelControlSWTRenderer(VControl vElement,
ViewModelContext viewContext,
ReportService reportService) |
Modifier and Type | Method and Description |
---|---|
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 abstract void |
linkValue(org.eclipse.swt.widgets.Shell shell)
This method should be overwritten to provide a correct selection mechanism.
|
protected void |
showLinkValueFailedMessageDialog(org.eclipse.swt.widgets.Shell shell,
Exception ex)
Shows an error message dialog indicating a failed value link due to an exception.
|
createBindings, getUnsetText
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 EditableEReferenceLabelControlSWTRenderer(VControl vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
protected org.eclipse.swt.widgets.Control createSWTControl(org.eclipse.swt.widgets.Composite parent2) throws DatabindingFailedException
createSWTControl
in class EReferenceLabelControlSWTRenderer
parent2
- the Composite
to use as a parentDatabindingFailedException
- if the creation of the control fails due to databinding problemsControlRootEClassControl2SWTRenderer.createSWTControl(org.eclipse.swt.widgets.Composite)
protected abstract void linkValue(org.eclipse.swt.widgets.Shell shell)
shell
- the Shellprotected void showLinkValueFailedMessageDialog(org.eclipse.swt.widgets.Shell shell, Exception ex)
shell
- The parent Shell
of the message dialogex
- The Exception
causing the failurepublic void dispose()
dispose
in class EReferenceLabelControlSWTRenderer
EReferenceLabelControlSWTRenderer.dispose()
Copyright © 2016. All rights reserved.