Class DialogComponent<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>
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
ChangeDistributionSettingsDialogComponent
,ChangeUserModeDialogComponent
,ChartAxisValueDialogComponent
,ChartColorPaletteDescriptionDialogComponent
,ChartReferenceBandsDialogComponent
,ChartReferenceLinesDialogComponent
,ChartScaleDialogComponent
,ChoiceListDialogComponent
,ConfigurationStandaloneContentExchangeSettingsDialogComponent
,DialogWithToolbarComponent
,GanttChartSettingsDialogComponent
,GaugeChartQualityBandsDialogComponent
,LabelAreaDialogComponent
,MergeSupportRuleSettingsDialogComponent
,MobileCommandBarElementsDialogComponent
,PlannerDimensionsDialogComponent
,RequiredPermissionsDialogComponent
,SupportRuleSettingsDialogComponent
,TimeScaleDialogComponent
,TimeScaleLabelsDialogComponent
,TrendlineArrayDialogComponent
,TypeDescriptionDialogComponent
,UsedMobileApplicationFunctionalitiesDialogComponent
public class DialogComponent<M extends IModel,P extends IDialogParametrization>
extends ContainerComponent<M,P>
The dialog component.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IEventChannelListener listener) Adds the given listener to the channel.protected IContainerViewModel
Creates the view model of the container.protected void
Disposes the view models of this component.void
setChildActive
(IComponent<?> component) Given a child component, sets its first view model as the active view model of the dialog.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, 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
-
DialogComponent
Creates a new instance.- Parameters:
parameterization
- the parameterization
-
-
Method Details
-
addListener
Description copied from interface:IEventChannel
Adds the given listener to the channel.- Specified by:
addListener
in interfaceIEventChannel
- Overrides:
addListener
in classComponent<M extends IModel,
P extends IDialogParametrization> - Parameters:
listener
- the listener.
-
setChildActive
Given a child component, sets its first view model as the active view model of the dialog.- Parameters:
component
- a child component whose view model will be set as active
-
getViewModel
- Returns:
- the dialog view model
-
createContainerViewModel
Description copied from class:ContainerComponent
Creates the view model of the container.- Overrides:
createContainerViewModel
in classContainerComponent<M extends IModel,
P extends IDialogParametrization> - Returns:
- the newly created container view model.
-
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 classStandardComponent<M extends IModel,
P extends IDialogParametrization>
-