public class SWTStackLayoutRenderer extends AbstractSWTRenderer<VStackLayout> implements RootDomainModelChangeListener
VStackLayout
renderer.CUSTOM_VARIANT
Constructor and Description |
---|
SWTStackLayoutRenderer(VStackLayout vElement,
ViewModelContext viewContext,
ReportService reportService)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose()
Disposes all resources used by the renderer.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
void |
notifyChange()
Notifies this listener that the domain model of the
EMFFormsViewContext has changed. |
protected void |
postInit()
Use this method to initialize objects which are needed during rendering.
|
protected void |
preInit()
Use this method to initialize objects which are needed already before rendering.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public SWTStackLayoutRenderer(VStackLayout vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
getGridDescription
in class AbstractSWTRenderer<VStackLayout>
gridDescription
- the current SWTGridDescription
AbstractSWTRenderer.getGridDescription(org.eclipse.emfforms.spi.swt.core.layout.SWTGridDescription)
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement
.renderControl
in class AbstractSWTRenderer<VStackLayout>
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 foundorg.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer#renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.emf.ecp.view.spi.swt.Composite)
protected void preInit()
preInit
in class AbstractSWTRenderer<VStackLayout>
AbstractSWTRenderer.preInit()
protected void postInit()
postInit
in class AbstractSWTRenderer<VStackLayout>
AbstractSWTRenderer.postInit()
protected void dispose()
dispose
in class AbstractSWTRenderer<VStackLayout>
AbstractSWTRenderer.dispose()
public void notifyChange()
EMFFormsViewContext
has changed.notifyChange
in interface RootDomainModelChangeListener
RootDomainModelChangeListener.notifyChange()
Copyright © 2019. All rights reserved.