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 Constructor Description DtEditableComboView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IActionBarItem
addActionBarItem(ValueComboChooser nativeControl, ButtonItemViewModel item)
Adds theIActionBarItem
with the to native control.protected void
bind(EditableComboViewModel viewModel, ValueComboChooser nativeControl)
Binds the view model and native control together to this view.ValueComboChooser
doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, EditableComboViewModel viewModel)
Creates only the select control.protected IActionBarItem[]
getActionBarItems(ValueComboChooser nativeControl, EditableComboViewModel viewModel)
Returns theIActionBarItem
elements of the native control.protected void
handleButtonClick(ValueComboChooser nativeControl, EditableComboViewModel viewModel, IActionBarItem item)
Handles button click.protected void
processHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel)
protected void
processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel)
protected void
unbind(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, 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
computeNativeStyle, 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
-
doCreateNativeControl
public ValueComboChooser doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, EditableComboViewModel viewModel)
Description copied from class:AbstractDtSelectView
Creates only the select control. Does not creates buttons.- Specified by:
doCreateNativeControl
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
- Parameters:
parent
- the parentComposite
control.viewModel
- isSelectViewModel
successor model.- Returns:
- the newly created select control.
-
bind
protected void bind(EditableComboViewModel viewModel, ValueComboChooser 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 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:
processHotkeyExecution
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
-
processHotkeyRefresh
protected void processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, EditableComboViewModel viewModel)
- Overrides:
processHotkeyRefresh
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
-
unbind
protected void unbind(EditableComboViewModel viewModel, ValueComboChooser nativeControl)
Description copied from class:View
Unbinds the view model and the native control from this view. Override this method to customize the unbinding.- Overrides:
unbind
in 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:AbstractDtSelectView
Handles button click.- Overrides:
handleButtonClick
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
item
- the button item.
-
getActionBarItems
protected IActionBarItem[] getActionBarItems(ValueComboChooser nativeControl, EditableComboViewModel viewModel)
Description copied from class:AbstractDtSelectView
Returns theIActionBarItem
elements of the native control.- Specified by:
getActionBarItems
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
- Parameters:
nativeControl
- the native control.viewModel
- isSelectViewModel
successor model.- Returns:
- the
IActionBarItem
elements. - See Also:
ValueChooser.getActionBarItems()
-
addActionBarItem
protected IActionBarItem addActionBarItem(ValueComboChooser nativeControl, ButtonItemViewModel item)
Description copied from class:AbstractDtSelectView
Adds theIActionBarItem
with the to native control.- Specified by:
addActionBarItem
in classAbstractDtSelectView<EditableComboViewModel,ValueComboChooser>
- Parameters:
nativeControl
- the the native control.item
- theButtonItemViewModel
.- Returns:
- the added
-
-