public class DICustomControlSWTRenderer extends CustomControlSWTRenderer
CUSTOM_VARIANT
Constructor and Description |
---|
DICustomControlSWTRenderer(VCustomControl vElement,
ViewModelContext viewContext,
ReportService factory) |
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
finalizeRendering, getControls, getDefaultFontName, init, postInit, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
public DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory)
vElement
- the view model element to be renderedviewContext
- the view contextfactory
- the ReportService
protected 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 © 2017. All rights reserved.