Class AbstractLwtSpinnerView<VM extends ControlViewModel,LC extends AbstractLightSpinner<?>>
- java.lang.Object
-
- com._1c.g5.aef2.views.View<LwtRenderingParameters,VM,LC>
-
- com._1c.g5.aef2.lwt.views.LwtView<VM,LC>
-
- com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView<VM,LC>
-
- com._1c.g5.aef2.standard.lwt.views.AbstractLwtSpinnerView<VM,LC>
-
- 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 Summary
Constructors Constructor Description AbstractLwtSpinnerView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
bind(VM viewModel, LC lightControl)
Binds the view model and native control together to this view.protected LC
createControl(ILightComposite parent, VM viewModel)
Creates a light control for the view without decorations.protected abstract LC
createSpinner()
Creates the relevant spinner.protected abstract org.eclipse.emf.ecore.EStructuralFeature
getMaximumFeature()
Gets the maximum feature.protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?>
getMaximumObservable(LC lightControl)
Gets the maximum observable value.protected abstract org.eclipse.emf.ecore.EStructuralFeature
getMinimumFeature()
Gets the minimum feature.protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?>
getMinimumObservable(LC lightControl)
Gets the minimum observable value.protected abstract org.eclipse.emf.ecore.EStructuralFeature
getValueFeature()
Gets the value feature.protected abstract org.eclipse.core.databinding.observable.value.IObservableValue<?>
getValueObservable(LC lightControl)
Gets the value observable value.-
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
createLightControl, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.lwt.views.LwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExec
-
Methods inherited from class com._1c.g5.aef2.views.View
bindListener, bindNativeControl, bindValue, bindValue, bindViewModel, getNativeControl, getParameters, getViewModel, handleEventChannelEvent, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbind, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
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 classAbstractLwtStandardView<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 classAbstractLwtStandardView<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.
-
-