public class GroupSWTRenderer extends ContainerSWTRenderer<VGroup>
CUSTOM_VARIANT
Constructor and Description |
---|
GroupSWTRenderer(VGroup vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory factory,
EMFFormsDatabinding emfFormsDatabinding)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispose()
Disposes all resources used by the renderer.
|
protected Collection<VContainedElement> |
getChildren()
The collection of children to iterate over.
|
protected org.eclipse.swt.widgets.Composite |
getComposite(org.eclipse.swt.widgets.Composite parent)
Allows to customize the composite which is used to render the children onto.
|
protected String |
getCustomVariant()
The custom variant to set for styling.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected org.eclipse.swt.widgets.Layout |
getLayout(int numControls,
boolean equalWidth)
Returns the layout to use.
|
getEMFFormsRendererFactory, renderControl, setLayoutDataForControl
applyEnable, applyReadOnly, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public GroupSWTRenderer(VGroup vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory factory, EMFFormsDatabinding emfFormsDatabinding)
vElement
- the view model element to be renderedviewContext
- the view contextreportService
- the ReportService
factory
- the EMFFormsRendererFactory
emfFormsDatabinding
- The EMFFormsDatabinding
protected String getCustomVariant()
getCustomVariant
in class ContainerSWTRenderer<VGroup>
ContainerSWTRenderer.getCustomVariant()
protected Collection<VContainedElement> getChildren()
getChildren
in class ContainerSWTRenderer<VGroup>
ContainerSWTRenderer.getChildren()
protected org.eclipse.swt.widgets.Composite getComposite(org.eclipse.swt.widgets.Composite parent)
getComposite
in class ContainerSWTRenderer<VGroup>
parent
- the parent Composite
to use as a parentComposite
or a subclass to useContainerSWTRenderer.getComposite(org.eclipse.swt.widgets.Composite)
protected org.eclipse.swt.widgets.Layout getLayout(int numControls, boolean equalWidth)
ContainerSWTRenderer
getLayout
in class ContainerSWTRenderer<VGroup>
numControls
- number of columns to createequalWidth
- whether the columns should be equalLayout
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
ContainerSWTRenderer
getGridDescription
in class ContainerSWTRenderer<VGroup>
gridDescription
- the current SWTGridDescription
AbstractSWTRenderer.getGridDescription(SWTGridDescription)
protected void dispose()
dispose
in class ContainerSWTRenderer<VGroup>
ContainerSWTRenderer.dispose()
Copyright © 2016. All rights reserved.