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
Constructors Constructor Description ToolBarComponent(IParameterization parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ToolBarViewModel
createControlViewModel()
Creates control view model instance.protected Collection<ToolBarItemViewModel>
createItems()
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 Detail
-
ToolBarComponent
public ToolBarComponent(IParameterization parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization, cannot benull
.
-
-
Method Detail
-
createControlViewModel
protected ToolBarViewModel 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
protected void handleExecutionEvent(ToolBarItemViewModel viewModel)
Handles execution event.
Do nothing by default.- Parameters:
viewModel
- the toolbar item view model, cannot benull
.
-
createItems
protected Collection<ToolBarItemViewModel> createItems()
Creates and returns a collection of toolbar items.
Returns empty collection by default.- Returns:
- a collection of toolbar items.
-
-