Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.eclipse.emf.ecp.ui.view.swt.di.renderer
Class DIViewSWTRendererService

    java.lang.Object
      org.eclipse.emf.ecp.ui.view.swt.di.renderer.DIViewSWTRendererService

All Implemented Interfaces:
  EMFFormsRendererService<VView>

    public class DIViewSWTRendererService

extends Object
implements EMFFormsRendererService<VView>

NumberControlSWTRendererService which provides the NumberControlSWTRenderer.

Author:
  Eugen Neufeld

Field Summary

Fields inherited from interface org.eclipse.emfforms.spi.swt.core.EMFFormsRendererService
`NOT_APPLICABLE`

Constructor Summary
`DIViewSWTRendererService()`

Method Summary
`AbstractSWTRenderer<VView>` | `getRendererInstance(VView vElement, ViewModelContext viewModelContext)` Returns a renderer.
`double` | `isApplicable(VElement vElement, ViewModelContext viewModelContext)` Check whether the provided `VElement` can be rendered by the `AbstractSWTRenderer` provided by `EMFFormsRendererService.getRendererInstance(VElement, ViewModelContext)`.

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### DIViewSWTRendererService

    public DIViewSWTRendererService()

Method Detail

### isApplicable

    public double isApplicable(VElement vElement,
                               ViewModelContext viewModelContext)

  Check whether the provided `VElement` can be rendered by the `AbstractSWTRenderer` provided by `EMFFormsRendererService.getRendererInstance(VElement, ViewModelContext)`.

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

### getRendererInstance

    public AbstractSWTRenderer<VView> getRendererInstance(VView vElement,
                                                          ViewModelContext viewModelContext)

  Returns a renderer.

  Specified by:
    `getRendererInstance` in interface `EMFFormsRendererService<VView>`
  Parameters:
    `vElement` - The `VElement` to create the renderer instance for
    `viewModelContext` - The `ViewModelContext` to use for the renderer instance
  Returns:
    The AbstractSWTRenderer
  See Also:
    `EMFFormsRendererService.getRendererInstance(org.eclipse.emf.ecp.view.spi.model.VElement, org.eclipse.emf.ecp.view.spi.context.ViewModelContext)`

Overview | Package | Class | Use | Tree | Deprecated | Index
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2015. All Rights Reserved.