Class DtComboSelectView
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<ComboSelectViewModel,ValueComboChooser>
com._1c.g5.v8.dt.ui.aef.swt.views.DtComboSelectView
- All Implemented Interfaces:
IView<SwtRenderingParameters,ComboSelectViewModel, ValueComboChooser>
The DT combo view with opportunity to specify a set of buttons that should be
displayed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IActionBarItemaddActionBarItem(ValueComboChooser nativeControl, ButtonItemViewModel item) Adds theIActionBarItemwith the to native control.protected voidbind(ComboSelectViewModel viewModel, ValueComboChooser nativeControl) Binds the view model and native control together to this view.protected intcomputeNativeStyle(ComboSelectViewModel viewModel) Computes an SWT widget style flags.doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, ComboSelectViewModel viewModel) Creates only the select control.protected IActionBarItem[]getActionBarItems(ValueComboChooser nativeControl, ComboSelectViewModel viewModel) Returns theIActionBarItemelements of the native control.protected voidprocessHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel) protected voidprocessHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel) protected voidunbind(ComboSelectViewModel viewModel, ValueComboChooser nativeControl) Unbinds the view model and the native control from this view.Methods inherited from class com._1c.g5.v8.dt.ui.aef.swt.views.AbstractDtSelectView
attachButtonsToControl, createControl, handleButtonClick, handleEventChannelEvent, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControlMethods inherited from class com._1c.g5.aef2.swt.views.SwtView
getContentControl, handleFocusEvent, isControlDisposed, setContentControl, uiAsyncExec, uiSyncExecMethods 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
-
Constructor Details
-
DtComboSelectView
public DtComboSelectView()
-
-
Method Details
-
bind
Description copied from class:ViewBinds the view model and native control together to this view. Override this method to customize the binding.- Overrides:
bindin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser> - Parameters:
viewModel- the view model to bind.nativeControl- the native control to bind.
-
processHotkeyExecution
protected void processHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel) - Overrides:
processHotkeyExecutionin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
-
processHotkeyRefresh
protected void processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel) - Overrides:
processHotkeyRefreshin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
-
unbind
Description copied from class:ViewUnbinds the view model and the native control from this view. Override this method to customize the unbinding.- Overrides:
unbindin classView<SwtRenderingParameters,ComboSelectViewModel, ValueComboChooser> - Parameters:
viewModel- the view mode to unbind.nativeControl- the native control to unbind.
-
doCreateNativeControl
public ValueComboChooser doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, ComboSelectViewModel viewModel) Description copied from class:AbstractDtSelectViewCreates only the select control. Does not creates buttons.- Specified by:
doCreateNativeControlin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser> - Parameters:
parent- the parentCompositecontrol.viewModel- isSelectViewModelsuccessor model.- Returns:
- the newly created select control.
-
computeNativeStyle
Description copied from class:SwtViewComputes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStylein classSwtView<ComboSelectViewModel,ValueComboChooser> - Parameters:
viewModel- the view model to compute a style from.- Returns:
- the computed style.
- See Also:
-
Widget.getStyle()
-
getActionBarItems
protected IActionBarItem[] getActionBarItems(ValueComboChooser nativeControl, ComboSelectViewModel viewModel) Description copied from class:AbstractDtSelectViewReturns theIActionBarItemelements of the native control.- Specified by:
getActionBarItemsin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser> - Parameters:
nativeControl- the native control.viewModel- isSelectViewModelsuccessor model.- Returns:
- the
IActionBarItemelements. - See Also:
-
addActionBarItem
protected IActionBarItem addActionBarItem(ValueComboChooser nativeControl, ButtonItemViewModel item) Description copied from class:AbstractDtSelectViewAdds theIActionBarItemwith the to native control.- Specified by:
addActionBarItemin classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser> - Parameters:
nativeControl- the the native control.item- theButtonItemViewModel.- Returns:
- the added
-