VELEMENT
- public interface EMFFormsDIRendererService<VELEMENT extends VElement>
isApplicable(VElement, ViewModelContext)
method to check if the represented renderer is
suitable for the given VElement
and ViewModelContext
and the getRendererClass()
method that
returns the Class
of the renderer.Modifier and Type | Field and Description |
---|---|
static double |
NOT_APPLICABLE
Constant for
isApplicable(VElement, ViewModelContext) to indicate, that the EMFFormsDIRendererService
cannot provide a fitting renderer for the provided VElement. |
Modifier and Type | Method and Description |
---|---|
Class<? extends AbstractSWTRenderer<VELEMENT>> |
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
getRendererClass() . |
static final double NOT_APPLICABLE
isApplicable(VElement, ViewModelContext)
to indicate, that the EMFFormsDIRendererService
cannot provide a fitting renderer for the provided VElement.double isApplicable(VElement vElement, ViewModelContext viewModelContext)
VElement
can be rendered by the renderer defined by
getRendererClass()
.vElement
- The VElement
to checkviewModelContext
- The ViewModelContext
to use for the rendererNOT_APPLICABLE
if the renderer doesn't fit, a positive value otherwiseClass<? extends AbstractSWTRenderer<VELEMENT>> getRendererClass()
Class
for the renderer of this service.Class
Copyright © 2016. All rights reserved.