public class EmbeddedGroupSWTRenderer extends AbstractSWTRenderer<VGroup>
CUSTOM_VARIANT| Constructor and Description |
|---|
EmbeddedGroupSWTRenderer(VGroup vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory rendererFactory)
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.eclipse.swt.widgets.Control |
createHeadingControl(org.eclipse.swt.widgets.Composite parent)
Creates the control, which is used as a heading for the embedded group.
|
protected void |
dispose()
Disposes all resources used by the renderer.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement. |
applyEnable, applyReadOnly, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabledcheckRenderer, getReportService, getVElement, getViewModelContext@Inject public EmbeddedGroupSWTRenderer(VGroup vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory rendererFactory)
vElement - the view element to be renderedviewContext - The view model contextreportService - the ReportService to userendererFactory - the EMFFormsRendererFactory to usepublic SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderergetGridDescription in class AbstractSWTRenderer<VGroup>gridDescription - the current SWTGridDescriptionprotected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement.renderControl in class AbstractSWTRenderer<VGroup>cell - the GridCell of the control to renderparent - the Composite to render onControlNoRendererFoundException - this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be foundorg.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer#renderControl(org.eclipse.emfforms.spi.swt.core.layout.GridCell,
org.eclipse.swt.widgets.Composite)protected org.eclipse.swt.widgets.Control createHeadingControl(org.eclipse.swt.widgets.Composite parent)
parent - The parent to render the heading control onControlprotected void dispose()
AbstractSWTRendererdispose in class AbstractSWTRenderer<VGroup>Copyright © 2017. All rights reserved.