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, applyVisible, dispose, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabledcheckRenderer, getReportService, getVElement, getViewModelContext@Inject public SectionedAreaSWTRenderer(VSectionedArea vElement, ViewModelContext viewContext, ReportService reportService)
vElement - the view model element to be renderedviewContext - the view contextreportService - the ReportServicepublic SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderergetGridDescription in class AbstractSWTRenderer<VSectionedArea>gridDescription - the current SWTGridDescriptionprotected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
AbstractSWTRendererVElement.renderControl in class AbstractSWTRenderer<VSectionedArea>gridCell - 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 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 © 2016. All rights reserved.