Class SwtStandardView<VM extends ControlViewModel,​NC extends org.eclipse.swt.widgets.Control>

    • Constructor Detail

      • SwtStandardView

        public SwtStandardView()
    • Method Detail

      • createNativeControl

        public final NC createNativeControl​(org.eclipse.swt.widgets.Composite parent,
                                            VM viewModel)
        Description copied from class: SwtView
        Creates a native control for this view.
        Specified by:
        createNativeControl in class SwtView<VM extends ControlViewModel,​NC extends org.eclipse.swt.widgets.Control>
        Parameters:
        parent - the parent composite to place a control in.
        viewModel - the view mode to create a control for.
        Returns:
      • bind

        protected void bind​(VM viewModel,
                            NC 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 View<SwtRenderingParameters,​VM extends ControlViewModel,​NC extends org.eclipse.swt.widgets.Control>
        Parameters:
        viewModel - the view model to bind.
        nativeControl - the native control to bind.
      • createControl

        protected abstract NC createControl​(org.eclipse.swt.widgets.Composite parent,
                                            VM viewModel)
        Creates a native control for the view without decorations.
        Parameters:
        parent - the parent composite to place a control in.
        viewModel - the view mode to create a control for.
        Returns:
        the newly created control
      • setEnabledApperance

        protected void setEnabledApperance​(org.eclipse.swt.widgets.Control control,
                                           boolean enabled)
        Sets the enablement state for the control
        Parameters:
        control - the control
        enabled - true if the control should be enabled, false - otherwise.