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>
public class DtComboSelectView extends AbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
The DT combo view with opportunity to specify a set of buttons that should be displayed.
-
-
Constructor Summary
Constructors Constructor Description DtComboSelectView()
-
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(ComboSelectViewModel viewModel, ValueComboChooser nativeControl)
Binds the view model and native control together to this view.protected int
computeNativeStyle(ComboSelectViewModel viewModel)
Computes an SWT widget style flags.ValueComboChooser
doCreateNativeControl(org.eclipse.swt.widgets.Composite parent, ComboSelectViewModel viewModel)
Creates only the select control.protected IActionBarItem[]
getActionBarItems(ValueComboChooser nativeControl, ComboSelectViewModel viewModel)
Returns theIActionBarItem
elements of the native control.protected void
processHotkeyExecution(HotkeyExecutionEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel)
protected void
processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel)
protected void
unbind(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, 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
protected void bind(ComboSelectViewModel 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<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:
processHotkeyExecution
in classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
-
processHotkeyRefresh
protected void processHotkeyRefresh(HotkeyRefreshEvent event, ValueComboChooser nativeControl, ComboSelectViewModel viewModel)
- Overrides:
processHotkeyRefresh
in classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
-
unbind
protected void unbind(ComboSelectViewModel 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,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:AbstractDtSelectView
Creates only the select control. Does not creates buttons.- Specified by:
doCreateNativeControl
in classAbstractDtSelectView<ComboSelectViewModel,ValueComboChooser>
- Parameters:
parent
- the parentComposite
control.viewModel
- isSelectViewModel
successor model.- Returns:
- the newly created select control.
-
computeNativeStyle
protected int computeNativeStyle(ComboSelectViewModel viewModel)
Description copied from class:SwtView
Computes an SWT widget style flags. Override it to customize the flags.- Overrides:
computeNativeStyle
in 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:AbstractDtSelectView
Returns theIActionBarItem
elements of the native control.- Specified by:
getActionBarItems
in classAbstractDtSelectView<ComboSelectViewModel,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<ComboSelectViewModel,ValueComboChooser>
- Parameters:
nativeControl
- the the native control.item
- theButtonItemViewModel
.- Returns:
- the added
-
-