Class SwtComboView

All Implemented Interfaces:
IView<SwtRenderingParameters,ComboViewModel,org.eclipse.swt.widgets.Combo>

public class SwtComboView extends SwtStandardView<ComboViewModel,org.eclipse.swt.widgets.Combo>
The SWT combo view.
  • Constructor Details

    • SwtComboView

      public SwtComboView()
  • Method Details

    • bind

      protected void bind(ComboViewModel viewModel, org.eclipse.swt.widgets.Combo nativeControl)
      Description copied from class: View
      Binds the view model and native control together to this view. Override this method to customize the binding.
      Overrides:
      bind in class SwtStandardView<ComboViewModel,org.eclipse.swt.widgets.Combo>
      Parameters:
      viewModel - the view model to bind.
      nativeControl - the native control to bind.
    • createControl

      public org.eclipse.swt.widgets.Combo createControl(org.eclipse.swt.widgets.Composite parent, ComboViewModel viewModel)
      Description copied from class: SwtStandardView
      Creates a native control for the view without decorations.
      Specified by:
      createControl in class SwtStandardView<ComboViewModel,org.eclipse.swt.widgets.Combo>
      Parameters:
      parent - the parent composite to place a control in.
      viewModel - the view mode to create a control for.
      Returns:
      the newly created control
    • computeNativeStyle

      protected int computeNativeStyle(ComboViewModel viewModel)
      Description copied from class: SwtView
      Computes an SWT widget style flags. Override it to customize the flags.
      Overrides:
      computeNativeStyle in class SwtView<ComboViewModel,org.eclipse.swt.widgets.Combo>
      Parameters:
      viewModel - the view model to compute a style from.
      Returns:
      the computed style.
      See Also:
      • Widget.getStyle()