Class DICustomControlSWTRenderer
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.AbstractRenderer<VELEMENT>
-
- org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer<VCustomControl>
-
- org.eclipse.emf.ecp.view.spi.custom.swt.CustomControlSWTRenderer
-
- org.eclipse.emf.ecp.view.custom.ui.swt.di.renderer.DICustomControlSWTRenderer
-
public class DICustomControlSWTRenderer extends CustomControlSWTRenderer
Custom control SWTRenderer for Dependency Injection.- Author:
- jfaltermeier
-
-
Field Summary
-
Fields inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
CUSTOM_VARIANT
-
-
Constructor Summary
Constructors Constructor Description DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory)
Legacy constructor.DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory, SWTValidationUiService validationUiService)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ECPAbstractCustomControlSWT
loadCustomControl(VCustomControl customControl)
Loads and returns theECPAbstractCustomControlSWT
that is referenced by theVCustomControl
.protected org.eclipse.swt.widgets.Control
renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent)
Renders the passedVElement
.-
Methods inherited from class org.eclipse.emf.ecp.view.spi.custom.swt.CustomControlSWTRenderer
applyEnable, applyReadOnly, applyValidation, applyVisible, canHandleControlProcessor, defaultHandleControlProcessor, dispose, getGridDescription, preInit, render
-
Methods inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
applyValidation, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, scrollToReveal, scrollToReveal, setControlEnabled
-
Methods inherited from class org.eclipse.emf.ecp.view.model.common.AbstractRenderer
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
-
-
-
-
Constructor Detail
-
DICustomControlSWTRenderer
public DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory)
Legacy constructor.- Parameters:
vElement
- the view model element to be renderedviewContext
- the view contextfactory
- theReportService
-
DICustomControlSWTRenderer
public DICustomControlSWTRenderer(VCustomControl vElement, ViewModelContext viewContext, ReportService factory, SWTValidationUiService validationUiService)
Default constructor.- Parameters:
vElement
- the view model element to be renderedviewContext
- the view contextfactory
- theReportService
validationUiService
- theSWTValidationUiService
to use
-
-
Method Detail
-
loadCustomControl
protected ECPAbstractCustomControlSWT loadCustomControl(VCustomControl customControl)
Loads and returns theECPAbstractCustomControlSWT
that is referenced by theVCustomControl
.- Overrides:
loadCustomControl
in classCustomControlSWTRenderer
- Parameters:
customControl
- the custom control view model- Returns:
- the swt renderer
- See Also:
CustomControlSWTRenderer.loadCustomControl(org.eclipse.emf.ecp.view.spi.custom.model.VCustomControl)
-
renderControl
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
Renders the passedVElement
.- Overrides:
renderControl
in classCustomControlSWTRenderer
- Parameters:
cell
- theGridCell
of the control to renderparent
- theComposite
to render on- Returns:
- the rendered
Control
- Throws:
NoRendererFoundException
- this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption
- this is thrown when no property descriptor can be found- See Also:
CustomControlSWTRenderer.renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell, org.eclipse.swt.widgets.Composite)
-
-