public class EMFFormsRendererFactoryImpl extends Object implements EMFFormsRendererFactory
Constructor and Description |
---|
EMFFormsRendererFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEMFFormsAdditionalRendererService(EMFFormsAdditionalRendererService<VElement> rendererService)
Called by the initializer to add an
EMFFormsAdditionalRendererService . |
void |
addEMFFormsRendererService(EMFFormsRendererService<VElement> rendererService)
Called by the initializer to add an
EMFFormsRendererService . |
void |
clearRenderers()
Method for Tests to clear all services.
|
Collection<AbstractAdditionalSWTRenderer<VElement>> |
getAdditionalRendererInstances(VElement vElement,
ViewModelContext viewModelContext)
Returns a collection of all additional renderer which contribute controls for the provided
VElement . |
<VELEMENT extends VElement> |
getRendererInstance(VELEMENT vElement,
ViewModelContext viewModelContext)
Returns the renderer which fits the provided
VElement and ViewModelContext the most. |
protected void |
removeEMFFormsAdditionalRendererService(EMFFormsAdditionalRendererService<VElement> rendererService)
Called by the initializer to remove an
EMFFormsAdditionalRendererService . |
void |
removeEMFFormsRendererService(EMFFormsRendererService<VElement> rendererService)
Called by the initializer to remove an
EMFFormsRendererService . |
public void addEMFFormsRendererService(EMFFormsRendererService<VElement> rendererService)
EMFFormsRendererService
.rendererService
- The EMFFormsRendererService to addpublic void removeEMFFormsRendererService(EMFFormsRendererService<VElement> rendererService)
EMFFormsRendererService
.rendererService
- The EMFFormsRendererService to removeprotected void addEMFFormsAdditionalRendererService(EMFFormsAdditionalRendererService<VElement> rendererService)
EMFFormsAdditionalRendererService
.rendererService
- The EMFFormsAdditionalRendererService to addprotected void removeEMFFormsAdditionalRendererService(EMFFormsAdditionalRendererService<VElement> rendererService)
EMFFormsAdditionalRendererService
.rendererService
- The EMFFormsAdditionalRendererService to removepublic <VELEMENT extends VElement> AbstractSWTRenderer<VElement> getRendererInstance(VELEMENT vElement, ViewModelContext viewModelContext) throws EMFFormsNoRendererException
VElement
and ViewModelContext
the most.getRendererInstance
in interface EMFFormsRendererFactory
VELEMENT
- The VElement typevElement
- the VElement
to find the renderer forviewModelContext
- the ViewModelContext
to find the renderer forEMFFormsNoRendererException
EMFFormsRendererFactory.getRendererInstance(VElement,ViewModelContext)
public Collection<AbstractAdditionalSWTRenderer<VElement>> getAdditionalRendererInstances(VElement vElement, ViewModelContext viewModelContext)
VElement
.getAdditionalRendererInstances
in interface EMFFormsRendererFactory
vElement
- the VElement
to get additional renderer forviewModelContext
- the ViewModelContext
to checkEMFFormsRendererFactory.getAdditionalRendererInstances(VElement, ViewModelContext)
public void clearRenderers()
Copyright © 2016. All rights reserved.