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:
NavigatorTreeDialogComponent
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
Constructors Constructor Description DialogWithToolbarComponent(P dialogParametrization)
Creates a new dialog component.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
createComponents()
Creates the child components of this component.protected IAefLayoutData
createToolBarComponentLayoutData()
Creates Aef layout data for toolbar component.protected ToolBarItemViewModel
createToolBarItem(String tooltip, org.eclipse.swt.graphics.Image image, int style)
Creates toolbar item.protected abstract Collection<ToolBarItemViewModel>
createToolBarItems()
Creates toolbar items.protected void
disposeViewModels()
Disposes the view models of this component.protected void
refreshToolBarItems()
Refreshes toolbar items.protected void
registerToolBarItemHandler(ToolBarItemViewModel toolBarItem, IToolBarItemHandler handler)
Registers toolbar item handler.protected void
registerToolBarItemRefresher(ToolBarItemViewModel toolBarItem, IToolBarItemRefresher refresher)
Registers toolbar item refresher.-
Methods inherited from class com._1c.g5.aef2.standard.components.DialogComponent
addListener, createContainerViewModel, getViewModel, setChildActive
-
Methods 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, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, setLayoutData, updateViewModelStatus
-
Methods 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 Detail
-
DialogWithToolbarComponent
public DialogWithToolbarComponent(P dialogParametrization)
Creates a new dialog component.- Parameters:
dialogParametrization
- the dialog parametrization, cannot benull
-
-
Method Detail
-
createComponents
protected void createComponents()
Description copied from class:Component
Creates the child components of this component. Override it to fill a component with a child components.Method can be called multiple times.
- Overrides:
createComponents
in classComponent<M extends IModel,P extends IDialogParametrization>
-
disposeViewModels
protected void disposeViewModels()
Description copied from class:Component
Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModels
in 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 benull
handler
- the handler, cannot benull
-
registerToolBarItemRefresher
protected void registerToolBarItemRefresher(ToolBarItemViewModel toolBarItem, IToolBarItemRefresher refresher)
Registers toolbar item refresher.- Parameters:
toolBarItem
- the toolbar item, cannot benull
refresher
- 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 benull
image
- the image, can benull
style
- the style- Returns:
- the toolbar item, cannot be
null
-
createToolBarComponentLayoutData
protected IAefLayoutData createToolBarComponentLayoutData()
Creates Aef layout data for toolbar component.- Returns:
- the Aef layout data, cannot be
null
-
createToolBarItems
protected abstract Collection<ToolBarItemViewModel> createToolBarItems()
Creates toolbar items.- Returns:
- the collection toolbar items, cannot be
null
-
-