public class SectionNodeSWTRenderer extends AbstractSectionSWTRenderer
VSection
with child items.CUSTOM_VARIANT
Constructor and Description |
---|
SectionNodeSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService,
VTViewTemplateProvider viewTemplateProvider) |
Modifier and Type | Method and Description |
---|---|
protected void |
adjustLayoutData(boolean vis)
Adjusts the visibility for all gridcells based on the collapse state.
|
protected void |
applyEnable()
Allows implementers to set a control to enabled.
|
protected 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.ui.forms.widgets.ExpandableComposite |
getExpandableComposite() |
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected void |
initCollapseState()
Called by the
VSectionedArea when all children have been
renderered. |
protected void |
preInit()
Use this method to initialize objects which are needed already before rendering.
|
protected void |
setExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite expandableComposite) |
computeLeftMargin, getDataBindingContext, getEMFFormsRendererFactory, getLabelWidth, getViewTemplateProvider, renderControl
applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, render, scrollToReveal, scrollToReveal, setControlEnabled
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
@Inject public SectionNodeSWTRenderer(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 void preInit()
AbstractSWTRenderer
preInit
in class AbstractSWTRenderer<VSection>
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 adjustLayoutData(boolean vis)
AbstractSectionSWTRenderer
adjustLayoutData
in class AbstractSectionSWTRenderer
vis
- the collapse stateprotected void applyEnable()
AbstractSWTRenderer
applyEnable
in class AbstractSWTRenderer<VSection>
protected void dispose()
AbstractSectionSWTRenderer
dispose
in class AbstractSectionSWTRenderer
AbstractSWTRenderer.dispose()
protected void initCollapseState()
VSectionedArea
when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed()
.initCollapseState
in class AbstractSectionSWTRenderer
AbstractSectionSWTRenderer.initCollapseState()
protected org.eclipse.ui.forms.widgets.ExpandableComposite getExpandableComposite()
protected void setExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite expandableComposite)
expandableComposite
- the expandableComposite to setCopyright © 2019. All rights reserved.