public class ViewSWTRenderer extends ContainerSWTRenderer<VView> implements EMFFormsLocaleChangeListener
CUSTOM_VARIANT
Constructor and Description |
---|
ViewSWTRenderer(VView vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory factory,
EMFFormsDatabinding emfFormsDatabinding,
EMFFormsLocaleProvider localeProvider)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected Collection<VContainedElement> |
getChildren()
The collection of children to iterate over.
|
protected String |
getCustomVariant()
The custom variant to set for styling.
|
void |
notifyLocaleChange()
Notify about a locale change.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell gridCell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
getComposite, getEMFFormsRendererFactory, getGridDescription, getLayout, setLayoutDataForControl
applyEnable, applyReadOnly, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public ViewSWTRenderer(VView vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory factory, EMFFormsDatabinding emfFormsDatabinding, EMFFormsLocaleProvider localeProvider)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
factory
- the EMFFormsRendererFactory
emfFormsDatabinding
- The EMFFormsDatabinding
localeProvider
- The EMFFormsLocaleProvider
protected Collection<VContainedElement> getChildren()
getChildren
in class ContainerSWTRenderer<VView>
ContainerSWTRenderer.getChildren()
protected String getCustomVariant()
getCustomVariant
in class ContainerSWTRenderer<VView>
ContainerSWTRenderer.getCustomVariant()
public void notifyLocaleChange()
notifyLocaleChange
in interface EMFFormsLocaleChangeListener
EMFFormsLocaleChangeListener.notifyLocaleChange()
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.renderControl
in class ContainerSWTRenderer<VView>
gridCell
- 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 foundContainerSWTRenderer.renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)
protected void dispose()
dispose
in class ContainerSWTRenderer<VView>
ContainerSWTRenderer.dispose()
Copyright © 2016. All rights reserved.