Class SwtDoubleSpinnerView
- 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<DoubleSpinnerViewModel>
-
- com._1c.g5.aef2.standard.swt.views.SwtDoubleSpinnerView
-
- All Implemented Interfaces:
IView<SwtRenderingParameters,DoubleSpinnerViewModel,org.eclipse.swt.widgets.Spinner>
public class SwtDoubleSpinnerView extends AbstractSwtSpinnerView<DoubleSpinnerViewModel>
The SWT spinner view for doubles.
-
-
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 Constructor Description SwtDoubleSpinnerView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.swt.widgets.Spinner
createControl(org.eclipse.swt.widgets.Composite parent, DoubleSpinnerViewModel viewModel)
Creates a native control for the view without decorations.protected org.eclipse.core.databinding.conversion.IConverter
createControlToModelConverter()
Creates control to model converter.protected org.eclipse.core.databinding.conversion.IConverter
createModelToControlConverter()
Creates model to control converter.protected org.eclipse.emf.ecore.EStructuralFeature
getMaximumFeature()
Gets the maximum feature.protected org.eclipse.emf.ecore.EStructuralFeature
getMinimumFeature()
Gets the minimum feature.protected org.eclipse.emf.ecore.EStructuralFeature
getValueFeature()
Gets the value feature.-
Methods inherited from class com._1c.g5.aef2.standard.swt.views.AbstractSwtSpinnerView
bind, computeNativeStyle
-
Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.swt.views.SwtView
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
-
createControl
public org.eclipse.swt.widgets.Spinner createControl(org.eclipse.swt.widgets.Composite parent, DoubleSpinnerViewModel viewModel)
Description copied from class:SwtStandardView
Creates a native control for the view without decorations.- Overrides:
createControl
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- 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:AbstractSwtSpinnerView
Gets the minimum feature.- Specified by:
getMinimumFeature
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- Returns:
- The minimum feature.
-
getMaximumFeature
protected org.eclipse.emf.ecore.EStructuralFeature getMaximumFeature()
Description copied from class:AbstractSwtSpinnerView
Gets the maximum feature.- Specified by:
getMaximumFeature
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- Returns:
- The maximum feature.
-
getValueFeature
protected org.eclipse.emf.ecore.EStructuralFeature getValueFeature()
Description copied from class:AbstractSwtSpinnerView
Gets the value feature.- Specified by:
getValueFeature
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- Returns:
- The value feature.
-
createControlToModelConverter
protected org.eclipse.core.databinding.conversion.IConverter createControlToModelConverter()
Description copied from class:AbstractSwtSpinnerView
Creates control to model converter.- Specified by:
createControlToModelConverter
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- Returns:
IConverter
instance, cannot benull
.
-
createModelToControlConverter
protected org.eclipse.core.databinding.conversion.IConverter createModelToControlConverter()
Description copied from class:AbstractSwtSpinnerView
Creates model to control converter.- Specified by:
createModelToControlConverter
in classAbstractSwtSpinnerView<DoubleSpinnerViewModel>
- Returns:
IConverter
instance, cannot benull
.
-
-