Class AbstractSwtSpinnerView<VM extends ControlViewModel>

    • Constructor Detail

      • AbstractSwtSpinnerView

        public AbstractSwtSpinnerView()
    • Method Detail

      • bind

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

        public org.eclipse.swt.widgets.Spinner createControl​(org.eclipse.swt.widgets.Composite parent,
                                                             VM viewModel)
        Description copied from class: SwtStandardView
        Creates a native control for the view without decorations.
        Specified by:
        createControl in class SwtStandardView<VM extends ControlViewModel,​org.eclipse.swt.widgets.Spinner>
        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​(VM viewModel)
        Description copied from class: SwtView
        Computes an SWT widget style flags. Override it to customize the flags.
        Overrides:
        computeNativeStyle in class SwtView<VM extends ControlViewModel,​org.eclipse.swt.widgets.Spinner>
        Parameters:
        viewModel - the view model to compute a style from.
        Returns:
        the computed style.
        See Also:
        Widget.getStyle()
      • getMinimumFeature

        protected abstract org.eclipse.emf.ecore.EStructuralFeature getMinimumFeature()
        Gets the minimum feature.
        Returns:
        The minimum feature.
      • getMaximumFeature

        protected abstract org.eclipse.emf.ecore.EStructuralFeature getMaximumFeature()
        Gets the maximum feature.
        Returns:
        The maximum feature.
      • getValueFeature

        protected abstract org.eclipse.emf.ecore.EStructuralFeature getValueFeature()
        Gets the value feature.
        Returns:
        The value feature.
      • createControlToModelConverter

        protected abstract org.eclipse.core.databinding.conversion.IConverter createControlToModelConverter()
        Creates control to model converter.
        Returns:
        IConverter instance, cannot be null.
      • createModelToControlConverter

        protected abstract org.eclipse.core.databinding.conversion.IConverter createModelToControlConverter()
        Creates model to control converter.
        Returns:
        IConverter instance, cannot be null.