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 IContainerViewModel
createContainerViewModel()
Creates the view model of the container.void
dispose()
Disposes this component, its view models and its child components.protected void
disposeViewModels()
Disposes the view models of this component.protected SectionViewModel
getSectionViewModel()
protected void
handleAction(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:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<IModel>
- Overrides:
dispose
in classComponent<IModel,ISectionParameterization>
-
createContainerViewModel
protected IContainerViewModel createContainerViewModel()
Description copied from class:ContainerComponent
Creates the view model of the container.- Overrides:
createContainerViewModel
in 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:Component
Disposes the view models of this component. Override it to do some additional disposal operations specific to a component.- Overrides:
disposeViewModels
in classStandardComponent<IModel,ISectionParameterization>
-
getSectionViewModel
protected SectionViewModel getSectionViewModel()
- Returns:
- the section view model.
-
-