Class SwtLongSpinnerView
java.lang.Object
com._1c.g5.aef2.views.View<SwtRenderingParameters,VM,NC>
com._1c.g5.aef2.swt.views.SwtView<VM,NC>
com._1c.g5.aef2.standard.swt.views.SwtStandardView<VM,org.eclipse.swt.widgets.Spinner>
com._1c.g5.aef2.standard.swt.views.AbstractSwtSpinnerView<LongSpinnerViewModel>
com._1c.g5.aef2.standard.swt.views.SwtLongSpinnerView
- All Implemented Interfaces:
IView<SwtRenderingParameters,LongSpinnerViewModel, org.eclipse.swt.widgets.Spinner>
The SWT spinner view for long values.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.swt.views.AbstractSwtSpinnerView
AbstractSwtSpinnerView.NumberToNumberConverter<F extends Number,T extends Number> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.swt.widgets.SpinnercreateControl(org.eclipse.swt.widgets.Composite parent, LongSpinnerViewModel viewModel) Creates a native control for the view without decorations.protected org.eclipse.core.databinding.conversion.IConverterCreates control to model converter.protected org.eclipse.core.databinding.conversion.IConverterCreates model to control converter.protected org.eclipse.emf.ecore.EStructuralFeatureGets the maximum feature.protected org.eclipse.emf.ecore.EStructuralFeatureGets the minimum feature.protected org.eclipse.emf.ecore.EStructuralFeatureGets the value feature.Methods inherited from class com._1c.g5.aef2.standard.swt.views.AbstractSwtSpinnerView
bind, computeNativeStyleMethods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.swt.views.SwtView
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
-
SwtLongSpinnerView
public SwtLongSpinnerView()
-
-
Method Details
-
createControl
public org.eclipse.swt.widgets.Spinner createControl(org.eclipse.swt.widgets.Composite parent, LongSpinnerViewModel viewModel) Description copied from class:SwtStandardViewCreates a native control for the view without decorations.- Overrides:
createControlin classAbstractSwtSpinnerView<LongSpinnerViewModel>- Parameters:
parent- the parent composite to place a control in.viewModel- the view mode to create a control for.- Returns:
- the newly created control
-
getMinimumFeature
protected org.eclipse.emf.ecore.EStructuralFeature getMinimumFeature()Description copied from class:AbstractSwtSpinnerViewGets the minimum feature.- Specified by:
getMinimumFeaturein classAbstractSwtSpinnerView<LongSpinnerViewModel>- Returns:
- The minimum feature.
-
getMaximumFeature
protected org.eclipse.emf.ecore.EStructuralFeature getMaximumFeature()Description copied from class:AbstractSwtSpinnerViewGets the maximum feature.- Specified by:
getMaximumFeaturein classAbstractSwtSpinnerView<LongSpinnerViewModel>- Returns:
- The maximum feature.
-
getValueFeature
protected org.eclipse.emf.ecore.EStructuralFeature getValueFeature()Description copied from class:AbstractSwtSpinnerViewGets the value feature.- Specified by:
getValueFeaturein classAbstractSwtSpinnerView<LongSpinnerViewModel>- Returns:
- The value feature.
-
createControlToModelConverter
protected org.eclipse.core.databinding.conversion.IConverter createControlToModelConverter()Description copied from class:AbstractSwtSpinnerViewCreates control to model converter.- Specified by:
createControlToModelConverterin classAbstractSwtSpinnerView<LongSpinnerViewModel>- Returns:
IConverterinstance, cannot benull.
-
createModelToControlConverter
protected org.eclipse.core.databinding.conversion.IConverter createModelToControlConverter()Description copied from class:AbstractSwtSpinnerViewCreates model to control converter.- Specified by:
createModelToControlConverterin classAbstractSwtSpinnerView<LongSpinnerViewModel>- Returns:
IConverterinstance, cannot benull.
-