Class AbstractDtComboView<VM extends SelectViewModel>
- 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<VM>
-
- All Implemented Interfaces:
IView<LwtRenderingParameters,VM,LightEditorBar<LightText>>
- Direct Known Subclasses:
DtComboSelectView
,DtEditableComboView
public abstract class AbstractDtComboView<VM extends SelectViewModel> extends AbstractDtSelectView<VM,LightText>
The abstract DT combo view implementation.
-
-
Constructor Summary
Constructors Constructor Description AbstractDtComboView()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
bind(VM viewModel, LightEditorBar<LightText> lightControl)
Binds the view model and native control together to this view.protected abstract org.eclipse.core.databinding.observable.list.IObservableList<?>
createComboViewerInput(VM viewModel)
Creates input for combo viewer.protected LightEditorBar<LightText>
createEditorBar(VM viewModel)
Creates only the editor bar control.protected LightComboViewer
getViewer(LightEditorBar<LightText> lightControl)
Returns the viewer for the given light control.protected void
processHotkeyExecution(HotkeyExecutionEvent event, LightEditorBar<LightText> lightControl, VM viewModel)
protected void
processHotkeyRefresh(HotkeyRefreshEvent event, LightEditorBar<LightText> lightControl, VM viewModel)
protected void
setupEditorBar(LightEditorBar<LightText> lightControl, VM viewModel)
Setups the givenlightControl
, i.e.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtSelectView
attachButtonsToControl, createControl, handleButtonClick, 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(VM 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 classAbstractDtSelectView<VM extends SelectViewModel,LightText>
- Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
createComboViewerInput
protected abstract org.eclipse.core.databinding.observable.list.IObservableList<?> createComboViewerInput(VM viewModel)
Creates input for combo viewer.- Parameters:
viewModel
- the view model.- Returns:
- the
IObservableList
instance that is the input for combo viewer.
-
getViewer
protected LightComboViewer getViewer(LightEditorBar<LightText> lightControl)
Returns the viewer for the given light control.- Parameters:
lightControl
- the light control.- Returns:
- the
LightComboViewer
instance.
-
processHotkeyExecution
protected void processHotkeyExecution(HotkeyExecutionEvent event, LightEditorBar<LightText> lightControl, VM viewModel)
- Overrides:
processHotkeyExecution
in classAbstractDtSelectView<VM extends SelectViewModel,LightText>
-
processHotkeyRefresh
protected void processHotkeyRefresh(HotkeyRefreshEvent event, LightEditorBar<LightText> lightControl, VM viewModel)
- Overrides:
processHotkeyRefresh
in classAbstractDtSelectView<VM extends SelectViewModel,LightText>
-
setupEditorBar
protected void setupEditorBar(LightEditorBar<LightText> lightControl, VM 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 classAbstractDtSelectView<VM extends SelectViewModel,LightText>
- Parameters:
lightControl
- the editor bar control.viewModel
- the view model.
-
createEditorBar
protected LightEditorBar<LightText> createEditorBar(VM viewModel)
Description copied from class:AbstractDtSelectView
Creates only the editor bar control. Does not creates buttons.- Specified by:
createEditorBar
in classAbstractDtSelectView<VM extends SelectViewModel,LightText>
- Parameters:
viewModel
- isSelectViewModel
successor model.- Returns:
- the newly created select control.
-
-