public class EMFFormsSpreadsheetRendererFactoryImpl extends Object implements EMFFormsSpreadsheetRendererFactory
Constructor and Description |
---|
EMFFormsSpreadsheetRendererFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addEMFFormsSpreadsheetRendererService(EMFFormsSpreadsheetRendererService<VElement> spreadsheetRendererService)
Adds an
EMFFormsSpreadsheetRendererService to the list of available renderer. |
<VELEMENT extends VElement> |
getRendererInstance(VELEMENT vElement,
ViewModelContext viewModelContext)
Returns the renderer which fits the provided
VElement and ViewModelContext the most. |
void |
removeEMFFormsSpreadsheetRendererService(EMFFormsSpreadsheetRendererService<VElement> spreadsheetRendererService)
Removes an
EMFFormsSpreadsheetRendererService from the list of available renderer. |
public EMFFormsSpreadsheetRendererFactoryImpl()
public void addEMFFormsSpreadsheetRendererService(EMFFormsSpreadsheetRendererService<VElement> spreadsheetRendererService)
EMFFormsSpreadsheetRendererFactory
EMFFormsSpreadsheetRendererService
to the list of available renderer.addEMFFormsSpreadsheetRendererService
in interface EMFFormsSpreadsheetRendererFactory
spreadsheetRendererService
- The EMFFormsSpreadsheetRendererService to addpublic void removeEMFFormsSpreadsheetRendererService(EMFFormsSpreadsheetRendererService<VElement> spreadsheetRendererService)
EMFFormsSpreadsheetRendererFactory
EMFFormsSpreadsheetRendererService
from the list of available renderer.removeEMFFormsSpreadsheetRendererService
in interface EMFFormsSpreadsheetRendererFactory
spreadsheetRendererService
- The EMFFormsSpreadsheetRendererService to removepublic <VELEMENT extends VElement> EMFFormsAbstractSpreadsheetRenderer<VElement> getRendererInstance(VELEMENT vElement, ViewModelContext viewModelContext) throws EMFFormsNoRendererException
VElement
and ViewModelContext
the most.getRendererInstance
in interface EMFFormsSpreadsheetRendererFactory
VELEMENT
- The VElement typevElement
- the VElement
to find the renderer forviewModelContext
- the ViewModelContext
to find the renderer forEMFFormsNoRendererException
- is thrown when no renderer can be foundEMFFormsSpreadsheetRendererFactory.getRendererInstance(org.eclipse.emf.ecp.view.spi.model.VElement,
org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
Copyright © 2019. All rights reserved.