Class DtActionBarView
- 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<ActionBarViewModel,LightText>
-
- com._1c.g5.v8.dt.ui.aef.lwt.views.DtActionBarView
-
- All Implemented Interfaces:
IView<LwtRenderingParameters,ActionBarViewModel,LightEditorBar<LightText>>
- Direct Known Subclasses:
DtColorActionBarView
,LwtPredefinedItemCodeView
public class DtActionBarView extends AbstractDtSelectView<ActionBarViewModel,LightText>
The DT action bar view for displaying the value (or values) in the text control. It has opportunity to specify a set of buttons to display.
-
-
Constructor Summary
Constructors Constructor Description DtActionBarView()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bind(ActionBarViewModel viewModel, LightEditorBar<LightText> lightControl)
Binds the view model and native control together to this view.protected LightEditorBar<LightText>
createEditorBar(ActionBarViewModel viewModel)
Creates only the editor bar control.protected void
handleButtonClick(LightEditorBar<LightText> lightControl, ActionBarViewModel viewModel, LightImageButton item)
Handles button click.protected void
handleEventChannelEvent(IEvent event, ActionBarViewModel viewModel, LightEditorBar<LightText> control)
Handles events fromIEventChannel
.protected void
handleFocusEvent(FocusEvent event, ActionBarViewModel viewModel, LightEditorBar<LightText> control)
HandlesFocusEvent
.protected void
setupEditorBar(LightEditorBar<LightText> editorBar, ActionBarViewModel viewModel)
Adds theLightText
to editor bar and setups parameters taken from view model such as multiline mode and read only style.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.lwt.views.AbstractDtSelectView
attachButtonsToControl, createControl, processHotkeyExecution, processHotkeyRefresh
-
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, 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(ActionBarViewModel 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<ActionBarViewModel,LightText>
- Parameters:
viewModel
- the view model to bind.lightControl
- the native control to bind.
-
handleEventChannelEvent
protected void handleEventChannelEvent(IEvent event, ActionBarViewModel viewModel, LightEditorBar<LightText> control)
Description copied from class:View
Handles events fromIEventChannel
. By default handles only focus events.- Overrides:
handleEventChannelEvent
in classAbstractDtSelectView<ActionBarViewModel,LightText>
- Parameters:
event
- the event, cannot benull
.viewModel
- the view model, cannot benull
.control
- the control, cannot benull
.
-
handleFocusEvent
protected void handleFocusEvent(FocusEvent event, ActionBarViewModel viewModel, LightEditorBar<LightText> control)
Description copied from class:View
HandlesFocusEvent
.- Overrides:
handleFocusEvent
in classLwtView<ActionBarViewModel,LightEditorBar<LightText>>
- Parameters:
event
- the focus event, cannot benull
.viewModel
- the view model, cannot benull
.control
- the native control, cannot benull
.
-
handleButtonClick
protected void handleButtonClick(LightEditorBar<LightText> lightControl, ActionBarViewModel viewModel, LightImageButton item)
Description copied from class:AbstractDtSelectView
Handles button click.- Overrides:
handleButtonClick
in classAbstractDtSelectView<ActionBarViewModel,LightText>
item
- the button item.
-
setupEditorBar
protected void setupEditorBar(LightEditorBar<LightText> editorBar, ActionBarViewModel viewModel)
Adds theLightText
to editor bar and setups parameters taken from view model such as multiline mode and read only style.- Overrides:
setupEditorBar
in classAbstractDtSelectView<ActionBarViewModel,LightText>
- Parameters:
editorBar
- the editor bar control.viewModel
- the view model.
-
createEditorBar
protected LightEditorBar<LightText> createEditorBar(ActionBarViewModel viewModel)
Description copied from class:AbstractDtSelectView
Creates only the editor bar control. Does not creates buttons.- Specified by:
createEditorBar
in classAbstractDtSelectView<ActionBarViewModel,LightText>
- Parameters:
viewModel
- isSelectViewModel
successor model.- Returns:
- the newly created select control.
-
-