org.eclipse.emf.ecp.view.internal.categorization.swt
Class SWTCategorizationRendererService

java.lang.Object
  extended by org.eclipse.emf.ecp.view.internal.categorization.swt.SWTCategorizationRendererService
All Implemented Interfaces:
EMFFormsDIRendererService<VCategorization>

public class SWTCategorizationRendererService
extends Object
implements EMFFormsDIRendererService<VCategorization>

SWTCategorizationRendererService which provides the SWTCategorizationRenderer.

Author:
Eugen Neufeld

Field Summary
 
Fields inherited from interface org.eclipse.emfforms.spi.swt.core.di.EMFFormsDIRendererService
NOT_APPLICABLE
 
Constructor Summary
SWTCategorizationRendererService()
           
 
Method Summary
 Class<? extends AbstractSWTRenderer<VCategorization>> 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().
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SWTCategorizationRendererService

public SWTCategorizationRendererService()
Method Detail

isApplicable

public double isApplicable(VElement vElement,
                           ViewModelContext viewModelContext)
Check whether the provided VElement can be rendered by the renderer defined by EMFFormsDIRendererService.getRendererClass().

Specified by:
isApplicable in interface EMFFormsDIRendererService<VCategorization>
Parameters:
vElement - The VElement to check
viewModelContext - The ViewModelContext to use for the renderer
Returns:
EMFFormsDIRendererService.NOT_APPLICABLE if the renderer doesn't fit, a positive value otherwise
See Also:
EMFFormsRendererService.isApplicable(VElement,ViewModelContext)

getRendererClass

public Class<? extends AbstractSWTRenderer<VCategorization>> getRendererClass()
Returns the Class for the renderer of this service.

Specified by:
getRendererClass in interface EMFFormsDIRendererService<VCategorization>
Returns:
the Class
See Also:
EMFFormsDIRendererService.getRendererClass()


Copyright © 2015. All Rights Reserved.