Class SwtRenderer

    • Constructor Detail

      • SwtRenderer

        public SwtRenderer()
    • Method Detail

      • relayout

        public void relayout()
        Description copied from interface: IRenderer
        Triggers layout processing.
      • render

        public void render​(Iterable<IViewModel> viewModels)
        Description copied from interface: IRenderer
        Renders the provided view models.
        Parameters:
        viewModels - the view models to render.
      • dispose

        public void dispose()
        Description copied from interface: IRenderer
        Disposes this renderer.
      • createNativeControl

        protected <VM extends IControlViewModel> org.eclipse.swt.widgets.Widget createNativeControl​(IView<SwtRenderingParameters,​VM,​org.eclipse.swt.widgets.Widget> view,
                                                                                                    VM viewModel,
                                                                                                    org.eclipse.swt.widgets.Composite composite)
        Creates a native control for the given view, view model and composite.
        Parameters:
        view - the view to create a native control for.
        viewModel - the view model to create a native control from.
        composite - the SWT composite to create a native control in.
        Returns:
      • disposeNativeControl

        protected void disposeNativeControl​(org.eclipse.swt.widgets.Widget nativeControl)
        Disposes the given native control.
        Parameters:
        nativeControl - the native control to dispose.