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>
public class SwtLongSpinnerView extends AbstractSwtSpinnerView<LongSpinnerViewModel>
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 Constructor Description SwtLongSpinnerView()
-
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, LongSpinnerViewModel 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, LongSpinnerViewModel viewModel)
Description copied from class:SwtStandardView
Creates a native control for the view without decorations.- Overrides:
createControl
in 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:AbstractSwtSpinnerView
Gets the minimum feature.- Specified by:
getMinimumFeature
in classAbstractSwtSpinnerView<LongSpinnerViewModel>
- 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<LongSpinnerViewModel>
- 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<LongSpinnerViewModel>
- 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<LongSpinnerViewModel>
- 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<LongSpinnerViewModel>
- Returns:
IConverter
instance, cannot benull
.
-
-