Class DtEditableComboView
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<EditableComboViewModel,ValueComboChooser>
com._1c.g5.v8.dt.ui.aef.swt.views.DtEditableComboView
- All Implemented Interfaces:
IView<SwtRenderingParameters,EditableComboViewModel, ValueComboChooser>
public class DtEditableComboView
extends AbstractDtSelectView<EditableComboViewModel,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(EditableComboViewModel viewModel, ValueComboChooser nativeControl) Binds the view model and native control together to this view.doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, EditableComboViewModel viewModel) Creates only the select control.protected IActionBarItem[]getActionBarItems(ValueComboChooser nativeControl, EditableComboViewModel viewModel) Returns theIActionBarItemelements of the native control.protected voidhandleButtonClick(ValueComboChooser nativeControl, EditableComboViewModel viewModel, IActionBarItem item) Handles button click.protected voidprocessHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel) protected voidprocessHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel) protected voidunbind(EditableComboViewModel 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, handleEventChannelEvent, setEnabledApperanceMethods inherited from class com._1c.g5.aef2.standard.swt.views.SwtStandardView
createNativeControlMethods inherited from class com._1c.g5.aef2.swt.views.SwtView
computeNativeStyle, 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
-
DtEditableComboView
public DtEditableComboView()
-
-
Method Details
-
doCreateNativeControl
public ValueComboChooser doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, EditableComboViewModel viewModel) Description copied from class:AbstractDtSelectViewCreates only the select control. Does not creates buttons.- Specified by:
doCreateNativeControlin classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser> - Parameters:
parent- the parentCompositecontrol.viewModel- isSelectViewModelsuccessor model.- Returns:
- the newly created select control.
-
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<EditableComboViewModel,ValueComboChooser> - Parameters:
viewModel- the view model to bind.nativeControl- the native control to bind.
-
processHotkeyExecution
protected void processHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel) - Overrides:
processHotkeyExecutionin classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
-
processHotkeyRefresh
protected void processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel) - Overrides:
processHotkeyRefreshin classAbstractDtSelectView<EditableComboViewModel,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,EditableComboViewModel, ValueComboChooser> - Parameters:
viewModel- the view mode to unbind.nativeControl- the native control to unbind.
-
handleButtonClick
protected void handleButtonClick(ValueComboChooser nativeControl, EditableComboViewModel viewModel, IActionBarItem item) Description copied from class:AbstractDtSelectViewHandles button click.- Overrides:
handleButtonClickin classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser> item- the button item.
-
getActionBarItems
protected IActionBarItem[] getActionBarItems(ValueComboChooser nativeControl, EditableComboViewModel viewModel) Description copied from class:AbstractDtSelectViewReturns theIActionBarItemelements of the native control.- Specified by:
getActionBarItemsin classAbstractDtSelectView<EditableComboViewModel,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<EditableComboViewModel,ValueComboChooser> - Parameters:
nativeControl- the the native control.item- theButtonItemViewModel.- Returns:
- the added
-