public class SectionLeafSWTRenderer extends AbstractSectionSWTRenderer
VSection
without child items.CUSTOM_VARIANT
Constructor and Description |
---|
SectionLeafSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService) |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.swt.widgets.Control |
createFirstColumn(org.eclipse.swt.widgets.Composite parent)
Renders the first column.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected void |
initCollapseState()
Called by the
VSectionedArea when all children have been
renderered. |
adjustLayoutData, getEMFFormsRendererFactory, renderControl
applyEnable, applyReadOnly, applyValidation, applyVisible, dispose, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public SectionLeafSWTRenderer(VSection 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<VSection>
gridDescription
- the current SWTGridDescription
protected org.eclipse.swt.widgets.Control createFirstColumn(org.eclipse.swt.widgets.Composite parent)
AbstractSectionSWTRenderer
createFirstColumn
in class AbstractSectionSWTRenderer
parent
- the parent compositeprotected void initCollapseState()
VSectionedArea
when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed()
.initCollapseState
in class AbstractSectionSWTRenderer
AbstractSectionSWTRenderer.initCollapseState()
Copyright © 2016. All rights reserved.