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
Constructors Constructor Description EnumRadioGroupComponent(IEnumRadioGroupParameterization parameterization)
Creates a newEnumRadioGroupComponent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RadioGroupViewModel
createControlViewModel()
Creates control view model instance.protected ILabelProvider
createEnumLabelProvider()
Create label provider for values from this enum componentprotected IMapper<T,RadioGroupItemViewModel>
createMapper()
CreatesIMapper
that maps the domain model values on view model items.void
dispose()
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, updateViewModels
-
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
-
Methods 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 Detail
-
EnumRadioGroupComponent
public EnumRadioGroupComponent(IEnumRadioGroupParameterization parameterization)
Creates a newEnumRadioGroupComponent
.- Parameters:
parameterization
- the parameterization of the component, cannot benull
-
-
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<T>
- Overrides:
dispose
in classComponent<IValue<T>,IEnumRadioGroupParameterization>
-
createControlViewModel
protected RadioGroupViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IValue<T>,IEnumRadioGroupParameterization,RadioGroupViewModel>
- Returns:
- a newly created control view model.
-
createEnumLabelProvider
protected ILabelProvider createEnumLabelProvider()
Create label provider for values from this enum component
- Returns:
- label provider for enum component, never
null
-
createMapper
protected IMapper<T,RadioGroupItemViewModel> createMapper()
CreatesIMapper
that maps the domain model values on view model items.- Returns:
- a new instance of mapper.
-
-