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:
ChartAxisValueDialogComponent
,ChartColorPaletteDescriptionDialogComponent
,ChartReferenceBandsDialogComponent
,ChartReferenceLinesDialogComponent
,ChartScaleDialogComponent
,DialogWithToolbarComponent
,TrendlineArrayDialogComponent
,TypeDescriptionDialogComponent
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 Constructor Description DialogComponent(P parameterization)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addListener(IEventChannelListener listener)
Adds the given listener to the channel.protected IContainerViewModel
createContainerViewModel()
Creates the view model of the container.protected void
disposeViewModels()
Disposes the view models of this component.DialogViewModel
getViewModel()
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 Detail
-
DialogComponent
public DialogComponent(P parameterization)
Creates a new instance.- Parameters:
parameterization
- the parameterization
-
-
Method Detail
-
addListener
public void addListener(IEventChannelListener listener)
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
public void setChildActive(IComponent<?> component)
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
public DialogViewModel getViewModel()
- Returns:
- the dialog view model
-
createContainerViewModel
protected IContainerViewModel 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>
-
-