Class DtEditableComboView
- java.lang.Object
-
- com._1c.g5.aef2.views.View<LwtRenderingParameters,VM,LC>
-
- com._1c.g5.aef2.lwt.views.LwtView<VM,LC>
-
- com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView<VM,LightEditorBar<LC>>
-
- com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtSelectView<VM,LightText>
-
- com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtComboView<EditableComboViewModel>
-
- com._1c.g5.v8.dt.ui.aef.lwt.views.DtEditableComboView
-
- All Implemented Interfaces:
IView<LwtRenderingParameters,EditableComboViewModel,LightEditorBar<LightText>>
public class DtEditableComboView extends AbstractDtComboView<EditableComboViewModel>
The editable 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 void
bind(EditableComboViewModel viewModel, LightEditorBar<LightText> lightControl)
Binds the view model and native control together to this view.protected org.eclipse.core.databinding.observable.list.IObservableList<?>
createComboViewerInput(EditableComboViewModel viewModel)
Creates input for combo viewer.protected void
handleButtonClick(LightEditorBar<LightText> lightControl, EditableComboViewModel viewModel, LightImageButton item)
Handles button click.protected void
setupEditorBar(LightEditorBar<LightText> editorBar, EditableComboViewModel viewModel)
Setups the givenlightControl
, i.e.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtComboView
createEditorBar, getViewer, processHotkeyExecution, processHotkeyRefresh
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtSelectView
attachButtonsToControl, createControl, handleEventChannelEvent
-
Methods inherited from class com._1c.g5.aef2.standard.lwt.views.AbstractLwtStandardView
createLightControl, setEnabledApperance
-
Methods inherited from class com._1c.g5.aef2.lwt.views.LwtView
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, unbind, unbindNativeControl, unbindViewModel, unmanageObservable, unregisterEventChannelListener
-
-
-
-
Method Detail
-
bind
protected void bind(EditableComboViewModel viewModel, LightEditorBar<LightText> lightControl)
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 classAbstractDtComboView<EditableComboViewModel>
- Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
createComboViewerInput
protected org.eclipse.core.databinding.observable.list.IObservableList<?> createComboViewerInput(EditableComboViewModel viewModel)
Description copied from class:AbstractDtComboView
Creates input for combo viewer.- Specified by:
createComboViewerInput
in classAbstractDtComboView<EditableComboViewModel>
- Parameters:
viewModel
- the view model.- Returns:
- the
IObservableList
instance that is the input for combo viewer.
-
setupEditorBar
protected void setupEditorBar(LightEditorBar<LightText> editorBar, EditableComboViewModel viewModel)
Description copied from class:AbstractDtSelectView
Setups the givenlightControl
, i.e. adds needed controls to editor bar, sets colors, borders and so on.- Overrides:
setupEditorBar
in classAbstractDtComboView<EditableComboViewModel>
- Parameters:
editorBar
- the editor bar control.viewModel
- the view model.
-
handleButtonClick
protected void handleButtonClick(LightEditorBar<LightText> lightControl, EditableComboViewModel viewModel, LightImageButton item)
Description copied from class:AbstractDtSelectView
Handles button click.- Overrides:
handleButtonClick
in classAbstractDtSelectView<EditableComboViewModel,LightText>
item
- the button item.
-
-