Class SectionComponent
- 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<IModel,ISectionParameterization>
-
- com._1c.g5.aef2.standard.components.SectionComponent
-
- All Implemented Interfaces:
IComponent<IModel>,IEventChannel
public class SectionComponent extends CompositeComponent<IModel,ISectionParameterization>
The section component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description SectionComponent(ISectionParameterization parameterization)Creates a new section component instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IContainerViewModelcreateContainerViewModel()Creates the view model of the container.voiddispose()Disposes this component, its view models and its child components.protected voiddisposeViewModels()Disposes the view models of this component.protected SectionViewModelgetSectionViewModel()protected voidhandleAction(SectionActionItemViewModel action)Handles the section action.-
Methods inherited from class com._1c.g5.aef2.standard.components.CompositeComponent
getLayout, setLayout, setLayoutData, updateViewModels
-
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, 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, 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
-
SectionComponent
public SectionComponent(ISectionParameterization parameterization)
Creates a new section component instance.- Parameters:
parameterization- the parameterization.
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IComponentDisposes this component, its view models and its child components.- Specified by:
disposein interfaceIComponent<IModel>- Overrides:
disposein classComponent<IModel,ISectionParameterization>
-
createContainerViewModel
protected IContainerViewModel createContainerViewModel()
Description copied from class:ContainerComponentCreates the view model of the container.- Overrides:
createContainerViewModelin classCompositeComponent<IModel,ISectionParameterization>- Returns:
- the newly created container view model.
-
handleAction
protected void handleAction(SectionActionItemViewModel action)
Handles the section action. Override to handle the givenSectionActionItemViewModel.- Parameters:
action- the action view model.
-
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 classStandardComponent<IModel,ISectionParameterization>
-
getSectionViewModel
protected SectionViewModel getSectionViewModel()
- Returns:
- the section view model.
-
-