public abstract class AbstractSectionSWTRenderer extends AbstractSWTRenderer<VSection>
CUSTOM_VARIANT
Constructor and Description |
---|
AbstractSectionSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService,
VTViewTemplateProvider viewTemplateProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustLayoutData(boolean collapsed)
Adjusts the visibility for all gridcells based on the collapse state.
|
protected int |
computeLeftMargin() |
protected abstract org.eclipse.swt.widgets.Control |
createFirstColumn(org.eclipse.swt.widgets.Composite parent)
Renders the first column.
|
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected org.eclipse.emf.databinding.EMFDataBindingContext |
getDataBindingContext()
Returns the
EMFDataBindingContext . |
protected EMFFormsRendererFactory |
getEMFFormsRendererFactory()
Access to the EMFFormsRendererFactory.
|
protected Optional<Integer> |
getLabelWidth()
The label width.
|
protected VTViewTemplateProvider |
getViewTemplateProvider() |
protected abstract void |
initCollapseState()
Called by the
VSectionedArea when all children have been
renderered. |
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell cell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, getGridDescription, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
public AbstractSectionSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService, VTViewTemplateProvider viewTemplateProvider)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
viewTemplateProvider
- the VTViewTemplateProvider
protected VTViewTemplateProvider getViewTemplateProvider()
VTViewTemplateProvider
protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell cell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
AbstractSWTRenderer
VElement
.renderControl
in class AbstractSWTRenderer<VSection>
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 foundprotected abstract org.eclipse.swt.widgets.Control createFirstColumn(org.eclipse.swt.widgets.Composite parent)
parent
- the parent compositeprotected void adjustLayoutData(boolean collapsed)
collapsed
- the collapse stateprotected EMFFormsRendererFactory getEMFFormsRendererFactory()
EMFFormsRendererFactory
protected org.eclipse.emf.databinding.EMFDataBindingContext getDataBindingContext()
EMFDataBindingContext
.protected void dispose()
dispose
in class AbstractSWTRenderer<VSection>
AbstractSWTRenderer.dispose()
protected abstract void initCollapseState()
VSectionedArea
when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed()
.protected int computeLeftMargin()
Copyright © 2019. All rights reserved.