Class AbstractLwtSpinnerView<VM extends ControlViewModel,​LC extends AbstractLightSpinner<?>>

    • Constructor Detail

      • AbstractLwtSpinnerView

        public AbstractLwtSpinnerView()
    • Method Detail

      • bind

        protected void bind​(VM viewModel,
                            LC lightControl)
        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 AbstractLwtStandardView<VM extends ControlViewModel,​LC extends AbstractLightSpinner<?>>
        Parameters:
        viewModel - the view model to bind.
        lightControl - the native control to bind.
      • getMinimumObservable

        protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?> getMinimumObservable​(LC lightControl)
        Gets the minimum observable value.
        Parameters:
        lightControl - The spinner to represent value.
        Returns:
        The minimum observable value.
      • getMaximumObservable

        protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?> getMaximumObservable​(LC lightControl)
        Gets the maximum observable value.
        Parameters:
        lightControl - The spinner to represent value.
        Returns:
        The maximum observable value.
      • getValueObservable

        protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?> getValueObservable​(LC lightControl)
        Gets the value observable value.
        Parameters:
        lightControl - The spinner to represent value.
        Returns:
        The value observable value.
      • 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.
      • createSpinner

        protected abstract LC createSpinner()
        Creates the relevant spinner.
        Returns:
        The spinner.