Class SwtNumberValueView
- 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,NC>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtSelectView<VM,org.eclipse.swt.widgets.Composite>
-
- com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtEditorBarView<NumberValueControlViewModel,org.eclipse.swt.widgets.Text>
-
- com._1c.g5.v8.dt.md.ui.aef.swt.views.SwtNumberValueView
-
- All Implemented Interfaces:
IView<SwtRenderingParameters,NumberValueControlViewModel,org.eclipse.swt.widgets.Composite>
public class SwtNumberValueView extends AbstractDtEditorBarView<NumberValueControlViewModel,org.eclipse.swt.widgets.Text>
The SWT view forNumberValueControlViewModel
.
-
-
Constructor Summary
Constructors Constructor Description SwtNumberValueView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(NumberValueControlViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
Binds the view model and native control together to this view.protected int
computeNativeStyle(NumberValueControlViewModel viewModel)
Computes an SWT widget style flags.protected org.eclipse.swt.widgets.Text
createEditorControl(org.eclipse.swt.widgets.Composite control, NumberValueControlViewModel viewModel)
Creates an editor control.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtEditorBarView
addActionBarItem, createControl, doCreateNativeControl, getActionBar, getActionBarItems, getEditor, unbind
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtSelectView
attachButtonsToControl, handleButtonClick, handleEventChannelEvent, processHotkeyExecution, processHotkeyRefresh, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControl
-
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, initialize, manageObservable, queueAndWaitEvent, queueEvent, registerEventChannelListener, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
bind
public void bind(NumberValueControlViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
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 classAbstractDtEditorBarView<NumberValueControlViewModel,org.eclipse.swt.widgets.Text>
- Parameters:
viewModel
- the view model to bind.nativeControl
- the native control to bind.
-
createEditorControl
protected org.eclipse.swt.widgets.Text createEditorControl(org.eclipse.swt.widgets.Composite control, NumberValueControlViewModel viewModel)
Description copied from class:AbstractDtEditorBarView
Creates an editor control.- Specified by:
createEditorControl
in classAbstractDtEditorBarView<NumberValueControlViewModel,org.eclipse.swt.widgets.Text>
- Parameters:
control
- the composite with action bar.viewModel
- the view model.- Returns:
- the newly creates editor control.
-
computeNativeStyle
protected int computeNativeStyle(NumberValueControlViewModel viewModel)
Description copied from class:SwtView
Computes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStyle
in classSwtView<NumberValueControlViewModel,org.eclipse.swt.widgets.Composite>
- Parameters:
viewModel
- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
Widget.getStyle()
-
-