Class SwtStandardRenderer

    • Constructor Detail

      • SwtStandardRenderer

        public SwtStandardRenderer()
        Instantiates a new SWT standard renderer.
    • Method Detail

      • 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. Adds the focus listener for key-binding support.
        Overrides:
        createNativeControl in class SwtRenderer
        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. Remove the focus listener about key-binding support.
        Overrides:
        disposeNativeControl in class SwtRenderer
        Parameters:
        nativeControl - the native control to dispose.
      • applyLayout

        protected void applyLayout​(IControlViewModel viewModel,
                                   org.eclipse.swt.widgets.Widget nativeControl)
        Description copied from class: Renderer
        Applies a layout to the given native control.
        Specified by:
        applyLayout in class Renderer<org.eclipse.swt.widgets.Widget,​SwtRenderingParameters>
        Parameters:
        viewModel - the associated view model.
        nativeControl - the native control to apply layout to.
      • convertLayout

        protected org.eclipse.swt.widgets.Layout convertLayout​(IAefLayout layout,
                                                               org.eclipse.swt.widgets.Widget nativeControl)
        Description copied from class: Renderer
        Converts the AEF layout to layout for the given native control.
        Specified by:
        convertLayout in class Renderer<org.eclipse.swt.widgets.Widget,​SwtRenderingParameters>
        Parameters:
        layout - the AEF layout.
        Returns:
        the converted layout object.
      • convertLayoutData

        protected Object convertLayoutData​(IAefLayoutData layoutData,
                                           org.eclipse.swt.widgets.Widget nativeControl)
        Description copied from class: Renderer
        Converts the AEF layout data to layout data for the given native control.
        Specified by:
        convertLayoutData in class Renderer<org.eclipse.swt.widgets.Widget,​SwtRenderingParameters>
        Parameters:
        layoutData - the AEF layout data.
        Returns:
        the converted layout data object.