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