Class DtGranularEditorPageSectionComponent
- 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>
-
- com._1c.g5.aef2.standard.definitions.components.DefinitionDrivenComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
-
- com._1c.g5.v8.dt.ui.editor.aef.components.DtGranularEditorPageSectionComponent
-
- All Implemented Interfaces:
IComponent<IDefinitionModel>
,IEventChannel
,ComponentSearch.IIdentifierHost
public class DtGranularEditorPageSectionComponent extends DefinitionDrivenComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
The component that implements sections in editors.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description DtGranularEditorPageSectionComponent(IDtGranularEditorPageSectionParameterization parameterization)
Creates a new editor section component.
-
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 String
getLabel(ILabeledDefinition definition)
Returns the label obtained from definition.protected SectionViewModel
getSectionViewModel()
protected void
handleAction(SectionActionItemViewModel action)
Handles the section action.void
setLayoutData(IAefLayoutData layoutData)
Sets the layout data object.-
Methods inherited from class com._1c.g5.aef2.standard.definitions.components.DefinitionDrivenComponent
attachToModel, createComponents, createFieldComponent, detachFromModel, disposeComponents, getComponent, getId, getLayout, getLayoutData, getRuleResultProcessor, handleRuleResultChanged
-
Methods inherited from class com._1c.g5.aef2.standard.components.CompositeComponent
setLayout, 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, handleExternalValidationEvent, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods inherited from class com._1c.g5.aef2.components.Component
addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, 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
-
DtGranularEditorPageSectionComponent
public DtGranularEditorPageSectionComponent(IDtGranularEditorPageSectionParameterization parameterization)
Creates a new editor section component.- 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<IDefinitionModel>
- Overrides:
dispose
in classComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
-
setLayoutData
public void setLayoutData(IAefLayoutData layoutData)
Description copied from class:StandardComponent
Sets the layout data object.- Overrides:
setLayoutData
in classCompositeComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
- Parameters:
layoutData
- the layout data to set, can benull
.
-
createContainerViewModel
protected IContainerViewModel createContainerViewModel()
Description copied from class:ContainerComponent
Creates the view model of the container.- Overrides:
createContainerViewModel
in classCompositeComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
- Returns:
- the newly created container view model.
-
getLabel
protected String getLabel(ILabeledDefinition definition)
Description copied from class:DefinitionDrivenComponent
Returns the label obtained from definition.- Overrides:
getLabel
in classDefinitionDrivenComponent<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
- Parameters:
definition
- theILabeledDefinition
.- Returns:
- the label.
-
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<IDefinitionModel,IDtGranularEditorPageSectionParameterization>
-
handleAction
protected void handleAction(SectionActionItemViewModel action)
Handles the section action. Override to handle the givenSectionActionItemViewModel
.- Parameters:
action
- the action view model.
-
getSectionViewModel
protected SectionViewModel getSectionViewModel()
- Returns:
- the section view model.
-
-