Class EnumRadioGroupComponent<T>
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.AbstractControlComponent<IValue<T>,IEnumRadioGroupParameterization,RadioGroupViewModel>
com._1c.g5.v8.dt.ui.aef.component.EnumRadioGroupComponent<T>
- All Implemented Interfaces:
IComponent<IValue<T>>,IEventChannel
public class EnumRadioGroupComponent<T>
extends AbstractControlComponent<IValue<T>,IEnumRadioGroupParameterization,RadioGroupViewModel>
The enum radio group component.
It operates model as a one of possible enum values represented as options in radio group.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection -
Constructor Summary
ConstructorsConstructorDescriptionEnumRadioGroupComponent(IEnumRadioGroupParameterization parameterization) Creates a newEnumRadioGroupComponent. -
Method Summary
Modifier and TypeMethodDescriptionprotected RadioGroupViewModelCreates control view model instance.protected ILabelProviderCreate label provider for values from this enum componentprotected IMapper<T,RadioGroupItemViewModel> CreatesIMapperthat maps the domain model values on view model items.voiddispose()Disposes this component, its view models and its child components.Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModelsMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatusMethods inherited from class com._1c.g5.aef2.components.Component
addComponent, 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 Details
-
EnumRadioGroupComponent
Creates a newEnumRadioGroupComponent.- Parameters:
parameterization- the parameterization of the component, cannot benull
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IComponentDisposes this component, its view models and its child components.- Specified by:
disposein interfaceIComponent<T>- Overrides:
disposein classComponent<IValue<T>,IEnumRadioGroupParameterization>
-
createControlViewModel
Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
createControlViewModelin classAbstractControlComponent<IValue<T>,IEnumRadioGroupParameterization, RadioGroupViewModel> - Returns:
- a newly created control view model.
-
createEnumLabelProvider
Create label provider for values from this enum component
- Returns:
- label provider for enum component, never
null
-
createMapper
CreatesIMapperthat maps the domain model values on view model items.- Returns:
- a new instance of mapper.
-