public class SectionNodeSWTRenderer extends AbstractSectionSWTRenderer
VSection with child items.CUSTOM_VARIANT| Constructor and Description |
|---|
SectionNodeSWTRenderer(VSection vElement,
ViewModelContext viewContext,
ReportService reportService) |
| 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 void |
applyReadOnly()
Marks a controls as readonly.
|
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) |
getDataBindingContext, getEMFFormsRendererFactory, renderControlapplyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, render, setControlEnabledcheckRenderer, getReportService, getVElement, getViewModelContext@Inject public SectionNodeSWTRenderer(VSection vElement, ViewModelContext viewContext, ReportService reportService)
vElement - the view model element to be renderedviewContext - the view contextreportService - the ReportServiceprotected void preInit()
AbstractSWTRendererpreInit in class AbstractSWTRenderer<VSection>public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
AbstractSWTRenderergetGridDescription in class AbstractSWTRenderer<VSection>gridDescription - the current SWTGridDescriptionprotected org.eclipse.swt.widgets.Control createFirstColumn(org.eclipse.swt.widgets.Composite parent)
AbstractSectionSWTRenderercreateFirstColumn in class AbstractSectionSWTRendererparent - the parent compositeprotected void adjustLayoutData(boolean vis)
AbstractSectionSWTRendereradjustLayoutData in class AbstractSectionSWTRenderervis - the collapse stateprotected void applyEnable()
AbstractSWTRendererapplyEnable in class AbstractSWTRenderer<VSection>protected void applyReadOnly()
AbstractSWTRendererapplyReadOnly in class AbstractSWTRenderer<VSection>protected void dispose()
AbstractSectionSWTRendererdispose in class AbstractSectionSWTRendererAbstractSWTRenderer.dispose()protected void initCollapseState()
VSectionedArea when all children have been
renderered. Initialises the collapse state based on VSection.isCollapsed().initCollapseState in class AbstractSectionSWTRendererAbstractSectionSWTRenderer.initCollapseState()protected org.eclipse.ui.forms.widgets.ExpandableComposite getExpandableComposite()
protected void setExpandableComposite(org.eclipse.ui.forms.widgets.ExpandableComposite expandableComposite)
expandableComposite - the expandableComposite to setCopyright © 2017. All rights reserved.