public class EMFFormsCategorizationElementRendererService extends Object implements EMFFormsSpreadsheetRendererService<VCategorizationElement>
NOT_APPLICABLE
Constructor and Description |
---|
EMFFormsCategorizationElementRendererService() |
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<VCategorizationElement> |
getRendererInstance(VCategorizationElement vElement,
ViewModelContext viewModelContext)
Returns a renderer.
|
protected EMFFormsSpreadsheetRendererFactory |
getSpreadsheetRendererFactory()
Gets and returns the
EMFFormsSpreadsheetRendererFactory . |
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 EMFFormsCategorizationElementRendererService()
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 BundleContextprotected EMFFormsSpreadsheetRendererFactory getSpreadsheetRendererFactory()
EMFFormsSpreadsheetRendererFactory
.EMFFormsSpreadsheetRendererFactory
public double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the EMFFormsAbstractSpreadsheetRenderer
provided
by EMFFormsSpreadsheetRendererService.getRendererInstance(VElement, ViewModelContext)
.isApplicable
in interface EMFFormsSpreadsheetRendererService<VCategorizationElement>
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(VElement,ViewModelContext)
public EMFFormsAbstractSpreadsheetRenderer<VCategorizationElement> getRendererInstance(VCategorizationElement vElement, ViewModelContext viewModelContext)
getRendererInstance
in interface EMFFormsSpreadsheetRendererService<VCategorizationElement>
vElement
- The VElement
to create the renderer instance forviewModelContext
- The ViewModelContext
to use for the renderer instanceEMFFormsSpreadsheetRendererService.getRendererInstance(VElement,ViewModelContext)
Copyright © 2019. All rights reserved.