Class SwtDateValueView
- 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<DateValueControlViewModel,DateChooserControl>
-
- com._1c.g5.v8.dt.md.ui.aef.swt.views.SwtDateValueView
-
- All Implemented Interfaces:
IView<SwtRenderingParameters,DateValueControlViewModel,org.eclipse.swt.widgets.Composite>
public class SwtDateValueView extends AbstractDtEditorBarView<DateValueControlViewModel,DateChooserControl>
The SWT view forDateValueControlViewModel
.
-
-
Constructor Summary
Constructors Constructor Description SwtDateValueView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind(DateValueControlViewModel viewModel, org.eclipse.swt.widgets.Composite nativeControl)
Binds the view model and native control together to this view.protected int
computeNativeStyle(DateValueControlViewModel viewModel)
Computes an SWT widget style flags.protected DateChooserControl
createEditorControl(org.eclipse.swt.widgets.Composite control, DateValueControlViewModel 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(DateValueControlViewModel 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<DateValueControlViewModel,DateChooserControl>
- Parameters:
viewModel
- the view model to bind.nativeControl
- the native control to bind.
-
createEditorControl
protected DateChooserControl createEditorControl(org.eclipse.swt.widgets.Composite control, DateValueControlViewModel viewModel)
Description copied from class:AbstractDtEditorBarView
Creates an editor control.- Specified by:
createEditorControl
in classAbstractDtEditorBarView<DateValueControlViewModel,DateChooserControl>
- Parameters:
control
- the composite with action bar.viewModel
- the view model.- Returns:
- the newly creates editor control.
-
computeNativeStyle
protected int computeNativeStyle(DateValueControlViewModel viewModel)
Description copied from class:SwtView
Computes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStyle
in classSwtView<DateValueControlViewModel,org.eclipse.swt.widgets.Composite>
- Parameters:
viewModel
- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
Widget.getStyle()
-
-