public class PGroupRenderer extends ContainerSWTRenderer<VGroup>
VGroup using PGroup from Nebula.CUSTOM_VARIANT| Constructor and Description |
|---|
PGroupRenderer(VGroup vElement,
ViewModelContext viewContext,
ReportService reportService,
EMFFormsRendererFactory factory)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected Collection<VContainedElement> |
getChildren()
The collection of children to iterate over.
|
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.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell gridCell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement. |
dispose, getComposite, getEMFFormsRendererFactory, setLayoutDataForControlapplyEnable, applyReadOnly, applyValidation, applyValidation, applyVisible, canReveal, finalizeRendering, getControls, getDefaultFontName, ignoreEnableOnReadOnly, init, isRenderingFinished, postInit, preInit, render, scrollToReveal, scrollToReveal, setControlEnabledcheckRenderer, getRenderer, getReportService, getVElement, getViewModelContext, register@Inject public PGroupRenderer(VGroup vElement, ViewModelContext viewContext, ReportService reportService, EMFFormsRendererFactory factory)
vElement - the view model element to be renderedviewContext - the view contextreportService - the ReportServicefactory - the EMFFormsRendererFactoryprotected Collection<VContainedElement> getChildren()
ContainerSWTRenderergetChildren in class ContainerSWTRenderer<VGroup>protected String getCustomVariant()
ContainerSWTRenderergetCustomVariant in class ContainerSWTRenderer<VGroup>protected org.eclipse.swt.widgets.Control renderControl(SWTGridCell gridCell, org.eclipse.swt.widgets.Composite parent) throws NoRendererFoundException, NoPropertyDescriptorFoundExeption
VElement.renderControl in class ContainerSWTRenderer<VGroup>gridCell - the GridCell of the control to renderparent - the Composite to render onControlNoRendererFoundException - this is thrown when a renderer cannot be foundNoPropertyDescriptorFoundExeption - this is thrown when no property descriptor can be foundContainerSWTRenderer.renderControl(org.eclipse.emfforms.spi.swt.core.layout.SWTGridCell,
org.eclipse.swt.widgets.Composite)protected org.eclipse.swt.widgets.Layout getLayout(int numControls,
boolean equalWidth)
ContainerSWTRenderergetLayout in class ContainerSWTRenderer<VGroup>numControls - number of columns to createequalWidth - whether the columns should be equalLayoutpublic SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
ContainerSWTRenderergetGridDescription in class ContainerSWTRenderer<VGroup>gridDescription - the current SWTGridDescriptionAbstractSWTRenderer.getGridDescription(SWTGridDescription)Copyright © 2020. All rights reserved.