public class EMFFormsSpreadsheetTableControlRendererService extends Object implements EMFFormsSpreadsheetRendererService<VTableControl>
NOT_APPLICABLE
Constructor and Description |
---|
EMFFormsSpreadsheetTableControlRendererService() |
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<VTableControl> |
getRendererInstance(VTableControl 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) . |
void |
setConverterRegistry(EMFFormsSpreadsheetValueConverterRegistry converterRegistry)
The EMFFormsSpreadsheetValueConverterRegistry to use.
|
protected void |
setEmfformsDatabinding(EMFFormsDatabindingEMF emfformsDatabinding)
Set the EMFFormsDatabindingEMF to use.
|
void |
setEMFFormsDomainExpander(EMFFormsDomainExpander domainExpander)
The EMFFormsDomainExpander to use.
|
protected void |
setEmfFormsIdProvider(EMFFormsIdProvider emfFormsIdProvider)
The EMFFormsIdProvider to use.
|
protected void |
setEmfformsLabelProvider(EMFFormsLabelProvider emfformsLabelProvider)
Set the EMFFormsLabelProvider to use.
|
void |
setFormatDescriptionProvider(EMFFormsSpreadsheetFormatDescriptionProvider formatDescriptionProvider)
The EMFFormsSpreadsheetFormatDescriptionProvider to use.
|
protected void |
setReportService(ReportService reportService)
The ReportService to use.
|
protected void |
setVTViewTemplateProvider(VTViewTemplateProvider vtViewTemplateProvider)
The VTViewTemplateProvider to use.
|
public EMFFormsSpreadsheetTableControlRendererService()
protected void setVTViewTemplateProvider(VTViewTemplateProvider vtViewTemplateProvider)
vtViewTemplateProvider
- the VTViewTemplateProvider to setprotected void setReportService(ReportService reportService)
reportService
- the reportService to setprotected void setEmfformsDatabinding(EMFFormsDatabindingEMF emfformsDatabinding)
emfformsDatabinding
- The EMFFormsDatabindingEMF to useprotected void setEmfformsLabelProvider(EMFFormsLabelProvider emfformsLabelProvider)
emfformsLabelProvider
- The EMFFormsLabelProvider to useprotected void setEmfFormsIdProvider(EMFFormsIdProvider emfFormsIdProvider)
emfFormsIdProvider
- the EMFFormsIdProvider to setpublic void setConverterRegistry(EMFFormsSpreadsheetValueConverterRegistry converterRegistry)
converterRegistry
- the converter registrypublic void setFormatDescriptionProvider(EMFFormsSpreadsheetFormatDescriptionProvider formatDescriptionProvider)
formatDescriptionProvider
- the formatDescriptionProviderpublic void setEMFFormsDomainExpander(EMFFormsDomainExpander domainExpander)
domainExpander
- the EMFFormsDomainExpanderpublic 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<VTableControl>
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<VTableControl> getRendererInstance(VTableControl vElement, ViewModelContext viewModelContext)
getRendererInstance
in interface EMFFormsSpreadsheetRendererService<VTableControl>
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 © 2019. All rights reserved.