public class SectionedAreaSWTRenderer extends AbstractSWTRenderer<VSectionedArea>
VSectionedArea
.CUSTOM_VARIANT
Constructor and Description |
---|
SectionedAreaSWTRenderer(VSectionedArea vElement,
ViewModelContext viewContext,
ReportService reportService) |
Modifier and Type | Method and Description |
---|---|
void |
finalizeRendering(org.eclipse.swt.widgets.Composite parent)
Called by the framework to initialize listener.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell gridCell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
protected void |
setLayoutDataForControl(SWTGridCell gridCell,
SWTGridDescription gridDescription,
SWTGridDescription currentRowGridDescription,
SWTGridDescription fullGridDescription,
VElement vElement,
org.eclipse.swt.widgets.Control control)
Sets the LayoutData for the specified control.
|
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, dispose, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
@Inject public SectionedAreaSWTRenderer(VSectionedArea vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderer
getGridDescription
in class AbstractSWTRenderer<VSectionedArea>
gridDescription
- the current SWTGridDescription
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
AbstractSWTRenderer
VElement
.renderControl
in class AbstractSWTRenderer<VSectionedArea>
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 foundprotected void setLayoutDataForControl(SWTGridCell gridCell, SWTGridDescription gridDescription, SWTGridDescription currentRowGridDescription, SWTGridDescription fullGridDescription, VElement vElement, org.eclipse.swt.widgets.Control control)
gridCell
- the GridCell
used to render the controlgridDescription
- the GridDescription
of the parent which rendered the controlcurrentRowGridDescription
- the GridDescription
of the current rowfullGridDescription
- the GridDescription
of the whole containervElement
- the VElement
to set the layoutData forcontrol
- the control to set the layout topublic void finalizeRendering(org.eclipse.swt.widgets.Composite parent)
finalizeRendering
in class AbstractSWTRenderer<VSectionedArea>
parent
- the parent used during renderAbstractSWTRenderer.finalizeRendering(org.eclipse.swt.widgets.Composite)
Copyright © 2019. All rights reserved.