Class ToolBarComponent
java.lang.Object
com._1c.g5.aef2.components.Component<M,P>
com._1c.g5.aef2.standard.components.StandardComponent<M,P>
com._1c.g5.aef2.standard.components.AbstractControlComponent<IModel,IParameterization,ToolBarViewModel>
com._1c.g5.v8.dt.ui.aef.component.ToolBarComponent
- All Implemented Interfaces:
IComponent<IModel>
,IEventChannel
public class ToolBarComponent
extends AbstractControlComponent<IModel,IParameterization,ToolBarViewModel>
The toolbar component.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Constructor Summary
ConstructorsConstructorDescriptionToolBarComponent
(IParameterization parameterization) Creates a new component. -
Method Summary
Modifier and TypeMethodDescriptionprotected ToolBarViewModel
Creates control view model instance.protected Collection<ToolBarItemViewModel>
Creates and returns a collection of toolbar items.
Returns empty collection by default.protected void
handleExecutionEvent
(ToolBarItemViewModel viewModel) Handles execution event.
Do nothing by default.Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
Methods inherited from class com._1c.g5.aef2.components.Component
addComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, dispose, disposeComponents, endExternalUpdate, getComponents, getModel, getParameterization, getParent, getRunnableQueue, getScene, getServiceEventQualifiers, getViewModels, isDisposed, isInExternalUpdate, queueAndWaitEvent, queueEvent, removeComponent, removeListener, removeViewModel, setChildCommitsEnabled, setChildRefreshEnable, setModel, setParent, setScene, subscribeOnEvents, subscribeOnEvents, unsubscribeOnEvents
-
Constructor Details
-
ToolBarComponent
Creates a new component.- Parameters:
parameterization
- the parameterization, cannot benull
.
-
-
Method Details
-
createControlViewModel
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IModel,
IParameterization, ToolBarViewModel> - Returns:
- a newly created control view model.
-
handleExecutionEvent
Handles execution event.
Do nothing by default.- Parameters:
viewModel
- the toolbar item view model, cannot benull
.
-
createItems
Creates and returns a collection of toolbar items.
Returns empty collection by default.- Returns:
- a collection of toolbar items.
-