public class CollapsableGroupSWTRenderer extends ContainerSWTRenderer<VGroup>
CUSTOM_VARIANT
Constructor and Description |
---|
CollapsableGroupSWTRenderer(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.
|
SWTGridDescription |
getGridDescription(SWTGridDescription gridDescription)
Returns the GridDescription for this Renderer.
|
protected void |
postCollapsed()
This method gets called after the group has been collapsed.
|
protected void |
postExpanded()
This method gets called after the group has been expanded.
|
protected org.eclipse.swt.widgets.Control |
renderControl(SWTGridCell gridCell,
org.eclipse.swt.widgets.Composite parent)
Renders the passed
VElement . |
getChildren, getComposite, getCustomVariant, getEMFFormsRendererFactory, getLayout, setLayoutDataForControl
applyEnable, applyReadOnly, applyValidation, applyVisible, finalizeRendering, getControls, getDefaultFontName, init, postInit, preInit, render, setControlEnabled
checkRenderer, getReportService, getVElement, getViewModelContext
@Inject public CollapsableGroupSWTRenderer(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
public SWTGridDescription getGridDescription(SWTGridDescription gridDescription)
ContainerSWTRenderer
getGridDescription
in class ContainerSWTRenderer<VGroup>
gridDescription
- the current SWTGridDescription
AbstractSWTRenderer.getGridDescription(SWTGridDescription)
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 onControl
NoRendererFoundException
- 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 void postExpanded()
protected void postCollapsed()
protected void dispose()
ContainerSWTRenderer
dispose
in class ContainerSWTRenderer<VGroup>
AbstractSWTRenderer.dispose()
Copyright © 2016. All rights reserved.