public abstract class AbstractSectionSWTRenderer extends AbstractSWTRenderer<VSection>
CUSTOM_VARIANT
Constructor and Description |
---|
AbstractSectionSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustLayoutData(boolean collapsed)
Adjusts the visibility for all gridcells based on the collapse state.
|
protected abstract org.eclipse.swt.widgets.Control |
createFirstColumn(org.eclipse.swt.widgets.Composite parent)
Renders the first column.
|
protected EMFFormsRendererFactory |
getEMFFormsRendererFactory()
Access to the EMFFormsRendererFactory.
|
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, applyVisible, dispose, finalizeRendering, getControls, getDefaultFontName, getGridDescription, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
public AbstractSectionSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
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 abstract void initCollapseState()
VSectionedArea
when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed()
.Copyright © 2016. All rights reserved.