public class EMFFormsSpreadsheetViewRendererService extends Object implements EMFFormsSpreadsheetRendererService<VView>
EMFFormsSpreadsheetRendererService
for VView
.NOT_APPLICABLE
Constructor and Description |
---|
EMFFormsSpreadsheetViewRendererService() |
Modifier and Type | Method and Description |
---|---|
void |
activate(org.osgi.framework.BundleContext bundleContext)
The activate method.
|
void |
deactivate(org.osgi.framework.BundleContext bundleContext)
The deactivate method.
|
EMFFormsAbstractSpreadsheetRenderer<VView> |
getRendererInstance(VView vElement,
ViewModelContext viewModelContext)
Returns a renderer.
|
double |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement can be rendered by the EMFFormsAbstractSpreadsheetRenderer provided
by EMFFormsSpreadsheetRendererService.getRendererInstance(VElement, ViewModelContext) . |
protected void |
setReportService(ReportService reportService)
The ReportService to use.
|
public EMFFormsSpreadsheetViewRendererService()
protected void setReportService(ReportService reportService)
reportService
- the reportService to setpublic void activate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContextpublic void deactivate(org.osgi.framework.BundleContext bundleContext)
bundleContext
- The BundleContextpublic double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the EMFFormsAbstractSpreadsheetRenderer
provided
by EMFFormsSpreadsheetRendererService.getRendererInstance(VElement, ViewModelContext)
.isApplicable
in interface EMFFormsSpreadsheetRendererService<VView>
vElement
- The VElement
to checkviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsSpreadsheetRendererService.NOT_APPLICABLE
if the renderer doesn't fit, a positive value otherwiseEMFFormsSpreadsheetRendererService.isApplicable(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public EMFFormsAbstractSpreadsheetRenderer<VView> getRendererInstance(VView vElement, ViewModelContext viewModelContext)
getRendererInstance
in interface EMFFormsSpreadsheetRendererService<VView>
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsSpreadsheetRendererService.getRendererInstance(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
Copyright © 2017. All rights reserved.