Class AbstractHeavyWrapperView<VM extends ControlViewModel,LC extends SwtLightControl,NC extends org.eclipse.swt.widgets.Control>

All Implemented Interfaces:
IView<LwtRenderingParameters,VM,LC>
Direct Known Subclasses:
AbstractHeavyCompositeWrapperView, AbstractHeavyControlWrapperView, AbstractLwtWrappingView, LwtWrapperView

public abstract class AbstractHeavyWrapperView<VM extends ControlViewModel,LC extends SwtLightControl,NC extends org.eclipse.swt.widgets.Control> extends AbstractLwtStandardView<VM,LC>
Base class for views that produces the heavy native SWT control.
  • Constructor Details

    • AbstractHeavyWrapperView

      public AbstractHeavyWrapperView()
  • Method Details

    • createControl

      public final LC createControl(ILightComposite lightComposite, VM viewModel)
      Description copied from class: AbstractLwtStandardView
      Creates a light control for the view without decorations.
      Specified by:
      createControl in class AbstractLwtStandardView<VM extends ControlViewModel,LC extends SwtLightControl>
      Parameters:
      lightComposite - the parent light composite.
      viewModel - the view mode to create a control for.
      Returns:
      the newly created control.
    • createHeavyControl

      protected abstract NC createHeavyControl(org.eclipse.swt.widgets.Composite composite, VM viewModel)
      Creates SWT control.
      Parameters:
      composite - the composite.
      viewModel - the view model.
      Returns:
      the newly created SWT control.
    • wrapHeavyControl

      protected abstract LC wrapHeavyControl(NC control)
      Wraps heavy control into light control.
      Parameters:
      control - the native control.
      Returns:
      light control.