org.eclipse.emf.ecp.view.group.swt.internal.collapsible.pgroup
Class PGroupRendererService

java.lang.Object
  extended by org.eclipse.emf.ecp.view.group.swt.internal.collapsible.pgroup.PGroupRendererService
All Implemented Interfaces:
EMFFormsDIRendererService<VGroup>

public class PGroupRendererService
extends Object
implements EMFFormsDIRendererService<VGroup>

GroupSWTRendererService which provides the GroupSWTRenderer.

Author:
Eugen Neufeld

Field Summary
 
Fields inherited from interface org.eclipse.emfforms.spi.swt.core.di.EMFFormsDIRendererService
NOT_APPLICABLE
 
Constructor Summary
PGroupRendererService()
           
 
Method Summary
 Class<? extends AbstractSWTRenderer<VGroup>> 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

PGroupRendererService

public PGroupRendererService()
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<VGroup>
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<VGroup>> getRendererClass()
Returns the Class for the renderer of this service.

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


Copyright © 2015. All Rights Reserved.