Class SwtSectionView

All Implemented Interfaces:
IView<SwtRenderingParameters,SectionViewModel,org.eclipse.swt.widgets.Composite>

public class SwtSectionView extends SwtStandardView<SectionViewModel,org.eclipse.swt.widgets.Composite>
The SWT Section view.
  • Constructor Details

    • SwtSectionView

      public SwtSectionView()
  • Method Details

    • createControl

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

      protected void unbind(SectionViewModel viewModel, org.eclipse.swt.widgets.Composite control)
      Description copied from class: View
      Unbinds the view model and the native control from this view. Override this method to customize the unbinding.
      Overrides:
      unbind in class View<SwtRenderingParameters,SectionViewModel,org.eclipse.swt.widgets.Composite>
      Parameters:
      viewModel - the view mode to unbind.
      control - the native control to unbind.
    • computeNativeStyle

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