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

Type Parameters:
VM - The control view model.
LC - The spinner control.
All Implemented Interfaces:
IView<LwtRenderingParameters,VM,LC>
Direct Known Subclasses:
LwtBigDecimalSpinnerView, LwtDoubleSpinnerView, LwtLongSpinnerView, LwtSpinnerView

public abstract class AbstractLwtSpinnerView<VM extends ControlViewModel,LC extends AbstractLightSpinner<?>> extends AbstractLwtStandardView<VM,LC>
Abstract parent for lwt views for spinners.
  • Constructor Details

    • AbstractLwtSpinnerView

      public AbstractLwtSpinnerView()
  • Method Details

    • 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.
    • createControl

      protected LC createControl(ILightComposite parent, VM viewModel)
      Description copied from class: AbstractLwtStandardView
      Creates a light control for the view without decorations.
      Specified by:
      createControl in class AbstractLwtStandardView<VM extends ControlViewModel,LC extends AbstractLightSpinner<?>>
      Parameters:
      parent - the parent light composite.
      viewModel - the view mode to create a control for.
      Returns:
      the newly created control.
    • 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.