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.emfforms.spi.swt.core
Interface EMFFormsRendererFactory

All Known Implementing Classes:
  EMFFormsRendererFactoryImpl

    public interface EMFFormsRendererFactory

This is the factory which selects the most fitting renderer for the provided `VElement` and `ViewModelContext`.

Author:
  Eugen Neufeld

Method Summary
`
`<VELEMENT extends VElement> Collection<AbstractAdditionalSWTRenderer<VElement>>`
` | `getAdditionalRendererInstances(VELEMENT vElement, ViewModelContext viewModelContext)` Returns a collection of all additional renderer which contribute controls for the provided `VElement`.
`
`<VELEMENT extends VElement> AbstractSWTRenderer<VElement>`
` | `getRendererInstance(VELEMENT vElement, ViewModelContext viewModelContext)` Returns the renderer which fits the provided `VElement` and `ViewModelContext` the most.

Method Detail

### getRendererInstance

    <VELEMENT extends VElement> AbstractSWTRenderer<VElement> getRendererInstance(VELEMENT vElement,
                                                                                  ViewModelContext viewModelContext)
                                                      throws EMFFormsNoRendererException

  Returns the renderer which fits the provided `VElement` and `ViewModelContext` the most.

  Type Parameters:
    `VELEMENT` - The VElement type
  Parameters:
    `vElement` - the `VElement` to find the renderer for
    `viewModelContext` - the `ViewModelContext` to find the renderer for
  Returns:
    the renderer
  Throws:
    `EMFFormsNoRendererException` - is thrown when no renderer can be found

### getAdditionalRendererInstances

    <VELEMENT extends VElement> Collection<AbstractAdditionalSWTRenderer<VElement>> getAdditionalRendererInstances(VELEMENT vElement,
                                                                                                                   ViewModelContext viewModelContext)

  Returns a collection of all additional renderer which contribute controls for the provided `VElement`.

  Type Parameters:
    `VELEMENT` - The VElement type
  Parameters:
    `vElement` - the `VElement` to get additional renderer for
    `viewModelContext` - the `ViewModelContext` to check
  Returns:
    the Collection of additional renderer

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.