Class CompositeComponent<M extends IModel,P extends IParameterization>
- 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.CompositeComponent<M,P>
-
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
AbstractTabFolderComponent
,AddInUploadButtonsComponent
,CommonPictureContentEditComponent
,DefinitionDrivenComponent
,GridLayoutCompositeComponent
,PropertyPaletteComponent
,ScrolledCompositeComponent
,SectionComponent
public class CompositeComponent<M extends IModel,P extends IParameterization> extends ContainerComponent<M,P>
The composite component.- See Also:
IContainerControlViewModel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description CompositeComponent(P parameterization)
Creates a new composite component instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IContainerViewModel
createContainerViewModel()
Creates the view model of the container.IAefLayout
getLayout()
Returns theIAefLayout
instance.void
setLayout(IAefLayout layout)
Sets layout object.void
setLayoutData(IAefLayoutData layoutData)
Sets the layout data object.void
updateViewModels()
Updates view models of the component.-
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
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, disposeViewModels, getLayoutData, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
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
-
CompositeComponent
public CompositeComponent(P parameterization)
Creates a new composite component instance.- Parameters:
parameterization
- the parameterization.
-
-
Method Detail
-
setLayout
public void setLayout(IAefLayout layout)
Sets layout object.- Parameters:
layout
- the layout to set, can benull
.
-
getLayout
public IAefLayout getLayout()
Returns theIAefLayout
instance.- Returns:
- the layout object or
null
.
-
setLayoutData
public void setLayoutData(IAefLayoutData layoutData)
Description copied from class:StandardComponent
Sets the layout data object.- Overrides:
setLayoutData
in classStandardComponent<M extends IModel,P extends IParameterization>
- Parameters:
layoutData
- the layout data to set, can benull
.
-
updateViewModels
public void updateViewModels()
Description copied from class:StandardComponent
Updates view models of the component. Override it to update view model properties according to current state of the component.- Overrides:
updateViewModels
in classContainerComponent<M extends IModel,P extends IParameterization>
-
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 IParameterization>
- Returns:
- the newly created container view model.
-
-