public class SectionLeafSWTRenderer extends AbstractSectionSWTRenderer
VSection
without child items.CUSTOM_VARIANT
Constructor and Description |
---|
SectionLeafSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService,
VTViewTemplateProvider viewTemplateProvider) |
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 int |
getLabelStyleBits()
Returns the style bits that are set on the label in the first column.
|
protected void |
initCollapseState()
Called by the
VSectionedArea when all children have been
renderered. |
adjustLayoutData, computeLeftMargin, dispose, getDataBindingContext, getEMFFormsRendererFactory, getLabelWidth, getViewTemplateProvider, renderControl
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
@Inject public SectionLeafSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService, VTViewTemplateProvider viewTemplateProvider)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
viewTemplateProvider
- the VTViewTemplateProvider
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 int getLabelStyleBits()
protected void initCollapseState()
VSectionedArea
when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed()
.initCollapseState
in class AbstractSectionSWTRenderer
AbstractSectionSWTRenderer.initCollapseState()
Copyright © 2019. All rights reserved.