Class DialogWithToolbarComponent<M extends IModel,P extends IDialogParametrization>
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.ContainerComponent<M,P>
com._1c.g5.aef2.standard.components.DialogComponent<M,P>
com._1c.g5.v8.dt.ui.aef.component.DialogWithToolbarComponent<M,P>
- All Implemented Interfaces:
IComponent<M>,IEventChannel
- Direct Known Subclasses:
AllowedIncomingShareRequestTypesDialogComponent,MobileApplicationUrlsDialogComponent,NavigatorTreeDialogComponent,SuppressionSettingsDialogComponent,WebSocketClientHeadersDialogComponent
public abstract class DialogWithToolbarComponent<M extends IModel,P extends IDialogParametrization>
extends DialogComponent<M,P>
Dialog component with toolbar.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection -
Constructor Summary
ConstructorsConstructorDescriptionDialogWithToolbarComponent(P dialogParametrization) Creates a new dialog component. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidCreates the child components of this component.protected IAefLayoutDataCreates Aef layout data for toolbar component.protected ToolBarItemViewModelcreateToolBarItem(String tooltip, org.eclipse.swt.graphics.Image image, int style) Creates toolbar item.protected abstract Collection<ToolBarItemViewModel>Creates toolbar items.protected voidDisposes the view models of this component.protected voidRefreshes toolbar items.protected voidregisterToolBarItemHandler(ToolBarItemViewModel toolBarItem, IToolBarItemHandler handler) Registers toolbar item handler.protected voidregisterToolBarItemRefresher(ToolBarItemViewModel toolBarItem, IToolBarItemRefresher refresher) Registers toolbar item refresher.Methods inherited from class com._1c.g5.aef2.standard.components.DialogComponent
addListener, createContainerViewModel, getViewModel, setChildActiveMethods inherited from class com._1c.g5.aef2.standard.components.ContainerComponent
addComponent, button, button, checkBox, checkBox, combo, createViewModels, disposeChildren, field, field, getContainerViewModel, isEditable, label, label, refreshChildren, separator, spinner, text, updateViewModelsMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, setLayoutData, updateViewModelStatusMethods inherited from class com._1c.g5.aef2.components.Component
addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, 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
-
DialogWithToolbarComponent
Creates a new dialog component.- Parameters:
dialogParametrization- the dialog parametrization, cannot benull
-
-
Method Details
-
createComponents
protected void createComponents()Description copied from class:ComponentCreates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponentsin classComponent<M extends IModel,P extends IDialogParametrization>
-
disposeViewModels
protected void disposeViewModels()Description copied from class:ComponentDisposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModelsin classDialogComponent<M extends IModel,P extends IDialogParametrization>
-
refreshToolBarItems
protected void refreshToolBarItems()Refreshes toolbar items. -
registerToolBarItemHandler
protected void registerToolBarItemHandler(ToolBarItemViewModel toolBarItem, IToolBarItemHandler handler) Registers toolbar item handler.- Parameters:
toolBarItem- the toolbar item, cannot benullhandler- the handler, cannot benull
-
registerToolBarItemRefresher
protected void registerToolBarItemRefresher(ToolBarItemViewModel toolBarItem, IToolBarItemRefresher refresher) Registers toolbar item refresher.- Parameters:
toolBarItem- the toolbar item, cannot benullrefresher- the refresher, cannot benull
-
createToolBarItem
protected ToolBarItemViewModel createToolBarItem(String tooltip, org.eclipse.swt.graphics.Image image, int style) Creates toolbar item.- Parameters:
tooltip- the tooltip, can benullimage- the image, can benullstyle- the style- Returns:
- the toolbar item, cannot be
null
-
createToolBarComponentLayoutData
Creates Aef layout data for toolbar component.- Returns:
- the Aef layout data, cannot be
null
-
createToolBarItems
Creates toolbar items.- Returns:
- the collection toolbar items, cannot be
null
-