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 -
Method Summary
Modifier and TypeMethodDescriptionprotected voidBinds the view model and native control together to this view.protected LCcreateControl(ILightComposite parent, VM viewModel) Creates a light control for the view without decorations.protected abstract LCCreates the relevant spinner.protected abstract org.eclipse.emf.ecore.EStructuralFeatureGets 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.EStructuralFeatureGets 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.EStructuralFeatureGets 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, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.lwt.views.LwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExecMethods 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
-
Constructor Details
-
AbstractLwtSpinnerView
public AbstractLwtSpinnerView()
-
-
Method Details
-
bind
Description copied from class:ViewBinds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bindin classAbstractLwtStandardView<VM extends ControlViewModel,LC extends AbstractLightSpinner<?>> - Parameters:
viewModel- the view model to bind.lightControl- the native control to bind.
-
createControl
Description copied from class:AbstractLwtStandardViewCreates a light control for the view without decorations.- Specified by:
createControlin 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
Creates the relevant spinner.- Returns:
- The spinner.
-