public class DICustomControlSWTRenderer extends CustomControlSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
DICustomControlSWTRenderer(VCustomControl vElement,
ViewModelContext viewContext,
ReportService factory)
Legacy constructor.
|
DICustomControlSWTRenderer(VCustomControl vElement,
ViewModelContext viewContext,
ReportService factory,
SWTValidationUiService validationUiService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected ECPAbstractCustomControlSWT |
loadCustomControl(VCustomControl customControl)
Loads and returns the
ECPAbstractCustomControlSWT that is referenced by the VCustomControl . |
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
applyEnable, applyReadOnly, applyValidation, applyVisible, canHandleControlProcessor, defaultHandleControlProcessor, dispose, getGridDescription, preInit, render
applyValidation, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
public DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory)
vElement
- the view model element to be renderedviewContext
- the view contextfactory
- the ReportService
public DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory, SWTValidationUiService validationUiService)
vElement
- the view model element to be renderedviewContext
- the view contextfactory
- the ReportService
validationUiService
- the SWTValidationUiService
to useprotected ECPAbstractCustomControlSWT loadCustomControl(VCustomControl customControl)
ECPAbstractCustomControlSWT
that is referenced by the VCustomControl
.loadCustomControl
in class CustomControlSWTRenderer
customControl
- the custom control view modelCustomControlSWTRenderer.loadCustomControl(org.eclipse.emf.ecp.view.spi.custom.model.VCustomControl)
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.renderControl
in class CustomControlSWTRenderer
cell
- the GridCell
of the control to renderparent
- the Composite
to render onControl
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be foundCustomControlSWTRenderer.renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)
Copyright © 2020. All rights reserved.