Interface EMFFormsControlProcessorService

  • All Superinterfaces:
    ViewModelService

    public interface EMFFormsControlProcessorService
    extends ViewModelService

    A service which should be called while controls are initially rendered. While this service is generically supported within the AbstractSWTRenderer, extenders of AbstractSWTRenderer or custom controls should call this service for each generated SWT control which relates to a VDomainModelReference.

    Note: Since all generated controls are potentially exposed, the possibilities of this service are practically limitless. But with power comes great responsibility: Too liberal modifications of the given Controls can lead to undefined and unwanted behavior, including unresponsive controls, misaligned layouts or even cancellation of the whole rendering process.

    Since:
    1.8
    Author:
    Stefan Dirix
    • Method Detail

      • process

        void process​(org.eclipse.swt.widgets.Control control,
                     VControl vControl,
                     ViewModelContext controlViewModelContext)
        Process the given control rendered by the given vControl.
        Parameters:
        control - The Control which will be processed by this service.
        vControl - The VControl responsible for the given control.
        controlViewModelContext - The ViewModelContext of the control.
      • process

        void process​(org.eclipse.swt.widgets.Control control,
                     java.util.Collection<ReferenceObjectPair> references)
        Process the given control which relates to the given references.
        Parameters:
        control - The Control which will be processed by this service.
        references - The VDomainModelReferences with their corresponding context EObjects which relate to the given control.