Class SectionLeafSWTRenderer
- java.lang.Object
-
- org.eclipse.emf.ecp.view.model.common.AbstractRenderer<VELEMENT>
-
- org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer<VSection>
-
- org.eclipse.emf.ecp.view.spi.section.swt.AbstractSectionSWTRenderer
-
- org.eclipse.emf.ecp.view.spi.section.swt.SectionLeafSWTRenderer
-
public class SectionLeafSWTRenderer extends AbstractSectionSWTRenderer
Renderer forVSection
without child items.- Author:
- jfaltermeier
-
-
Field Summary
-
Fields inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
CUSTOM_VARIANT
-
-
Constructor Summary
Constructors Constructor Description SectionLeafSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService, VTViewTemplateProvider viewTemplateProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 theVSectionedArea
when all children have been renderered.-
Methods inherited from class org.eclipse.emf.ecp.view.spi.section.swt.AbstractSectionSWTRenderer
adjustLayoutData, computeLeftMargin, dispose, getDataBindingContext, getEMFFormsRendererFactory, getLabelWidth, getViewTemplateProvider, renderControl
-
Methods inherited from class org.eclipse.emfforms.spi.swt.core.AbstractSWTRenderer
applyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabled
-
Methods inherited from class org.eclipse.emf.ecp.view.model.common.AbstractRenderer
checkRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register
-
-
-
-
Constructor Detail
-
SectionLeafSWTRenderer
@Inject public SectionLeafSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService, VTViewTemplateProvider viewTemplateProvider)
- Parameters:
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- theReportService
viewTemplateProvider
- theVTViewTemplateProvider
- Since:
- 1.18
-
-
Method Detail
-
getGridDescription
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
Description copied from class:AbstractSWTRenderer
Returns the GridDescription for this Renderer.- Specified by:
getGridDescription
in classAbstractSWTRenderer<VSection>
- Parameters:
gridDescription
- the currentSWTGridDescription
- Returns:
- the number of controls per row
-
createFirstColumn
protected org.eclipse.swt.widgets.Control createFirstColumn(org.eclipse.swt.widgets.Composite parent)
Description copied from class:AbstractSectionSWTRenderer
Renders the first column.- Specified by:
createFirstColumn
in classAbstractSectionSWTRenderer
- Parameters:
parent
- the parent composite- Returns:
- the rendered control
-
getLabelStyleBits
protected int getLabelStyleBits()
Returns the style bits that are set on the label in the first column.- Returns:
- the style bits
- Since:
- 1.18
-
initCollapseState
protected void initCollapseState()
Called by theVSectionedArea
when all children have been renderered. Initialises the collapse state based onVSection.isCollapsed()
.- Specified by:
initCollapseState
in classAbstractSectionSWTRenderer
- Since:
- 1.6
- See Also:
AbstractSectionSWTRenderer.initCollapseState()
-
-