public class EMFFormsSpreadsheetMultiAttributeConverter extends Object implements EMFFormsSpreadsheetValueConverter
Converter
for multi attributes
.NOT_APPLICABLE
Constructor and Description |
---|
EMFFormsSpreadsheetMultiAttributeConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
getCellValue(org.apache.poi.ss.usermodel.Cell cell,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
Read the value of the
Cell using the EStructuralFeature as meta information about the value. |
double |
isApplicable(org.eclipse.emf.ecore.EObject domainObject,
VDomainModelReference dmr)
Returns whether this converter is applicable to convert the value for the given
domain model reference . |
void |
setCellValue(org.apache.poi.ss.usermodel.Cell cell,
Object fromObject,
org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature,
ViewModelContext viewModelContext)
Write the value to the
Cell using the EStructuralFeature as meta information about the value. |
void |
setDatabinding(EMFFormsDatabindingEMF databinding)
Sets the databinding service.
|
protected void |
setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
Sets the EMFFormsLocaleProvider service.
|
void |
setReportService(ReportService reportService)
Sets the report service.
|
public EMFFormsSpreadsheetMultiAttributeConverter()
public void setDatabinding(EMFFormsDatabindingEMF databinding)
databinding
- the serviceprotected void setEMFFormsLocaleProvider(EMFFormsLocaleProvider localeProvider)
localeProvider
- the servicepublic void setReportService(ReportService reportService)
reportService
- the servicepublic double isApplicable(org.eclipse.emf.ecore.EObject domainObject, VDomainModelReference dmr)
EMFFormsSpreadsheetValueConverter
domain model reference
. The converter
with the highest priority will
be used to convert this value. If this converter cannot convert the value this method should indicate this by
returning EMFFormsSpreadsheetValueConverter.NOT_APPLICABLE
.isApplicable
in interface EMFFormsSpreadsheetValueConverter
domainObject
- the domain objectdmr
- the domain model reference for which the value is to be convertedEMFFormsSpreadsheetValueConverter.NOT_APPLICABLE
public void setCellValue(org.apache.poi.ss.usermodel.Cell cell, Object fromObject, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature, ViewModelContext viewModelContext) throws EMFFormsConverterException
Cell
using the EStructuralFeature
as meta information about the value.setCellValue
in interface EMFFormsSpreadsheetValueConverter
cell
- The Cell to write tofromObject
- The value to writeeStructuralFeature
- The EStructuralFeature
describing the meta information of the valueviewModelContext
- The ViewModelContext
to useEMFFormsConverterException
- Whenever the eStructuralFeature and the value don't matchEMFFormsSpreadsheetValueConverter.setCellValue(org.apache.poi.ss.usermodel.Cell,
java.lang.Object, org.eclipse.emf.ecore.EStructuralFeature,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public Object getCellValue(org.apache.poi.ss.usermodel.Cell cell, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) throws EMFFormsConverterException
Cell
using the EStructuralFeature
as meta information about the value.getCellValue
in interface EMFFormsSpreadsheetValueConverter
cell
- The Cell to read fromeStructuralFeature
- The EStructuralFeature
describing the meta information of the valueEMFFormsConverterException
- Whenever the eStructuralFeature and the cell value don't matchEMFFormsSpreadsheetValueConverter.getCellValue(org.apache.poi.ss.usermodel.Cell,
org.eclipse.emf.ecore.EStructuralFeature)
Copyright © 2018. All rights reserved.