public class LinkOnlyMultiReferenceRendererService extends Object implements EMFFormsDIRendererService<VControl>
LinkOnlyMultiReferenceRenderer for multi references. The renderer is only used if the
corresponding control specifies an annotation with key "hideAddNewButton".| Modifier and Type | Field and Description |
|---|---|
static String |
ANNOTATION_KEY
The annotation key specifying that this renderer is applicable for a multi reference.
|
NOT_APPLICABLE| Constructor and Description |
|---|
LinkOnlyMultiReferenceRendererService() |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends AbstractSWTRenderer<VControl>> |
getRendererClass()
Returns the
Class for the renderer of this service. |
double |
isApplicable(VElement vElement,
ViewModelContext viewModelContext)
Check whether the provided
VElement can be rendered by the renderer defined by
EMFFormsDIRendererService.getRendererClass(). |
protected void |
setEMFFormsDatabinding(EMFFormsDatabinding databindingService)
Called by the initializer to set the EMFFormsDatabinding.
|
protected void |
setReportService(ReportService reportService)
Called by the initializer to set the ReportService.
|
public static final String ANNOTATION_KEY
public LinkOnlyMultiReferenceRendererService()
protected void setEMFFormsDatabinding(EMFFormsDatabinding databindingService)
databindingService - The EMFFormsDatabindingprotected void setReportService(ReportService reportService)
reportService - The ReportServicepublic double isApplicable(VElement vElement, ViewModelContext viewModelContext)
EMFFormsDIRendererServiceVElement can be rendered by the renderer defined by
EMFFormsDIRendererService.getRendererClass().isApplicable in interface EMFFormsDIRendererService<VControl>vElement - The VElement to checkviewModelContext - The ViewModelContext to use for the rendererEMFFormsDIRendererService.NOT_APPLICABLE if the renderer doesn't fit, a positive value otherwisepublic Class<? extends AbstractSWTRenderer<VControl>> getRendererClass()
EMFFormsDIRendererServiceClass for the renderer of this service.getRendererClass in interface EMFFormsDIRendererService<VControl>ClassCopyright © 2020. All rights reserved.