Class RadioGroupComponent<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<IRadioGroupModel<T>,IParameterization,RadioGroupViewModel>
-
- com.e1c.g5.dt.applications.ui.editor.aef.components.RadioGroupComponent<T>
-
- All Implemented Interfaces:
IComponent<IRadioGroupModel<T>>
,IEventChannel
public class RadioGroupComponent<T> extends AbstractControlComponent<IRadioGroupModel<T>,IParameterization,RadioGroupViewModel>
The radio group component for application editor purposes.- Since:
- 1.0.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RadioGroupViewModel
createControlViewModel()
Creates control view model instance.-
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, dispose, 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
-
RadioGroupComponent
public RadioGroupComponent(String title, Function<T,String> labelMapper, Function<T,String> descriptionMapper)
Creates a new component.- Parameters:
title
- the radio group title, cannot benull
.labelMapper
- the function that maps the model value to appropriate option label, cannot benull
.descriptionMapper
- the function that maps the model value to appropriate option description, cannot benull
.
-
-
Method Detail
-
createControlViewModel
protected RadioGroupViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IRadioGroupModel<T>,IParameterization,RadioGroupViewModel>
- Returns:
- a newly created control view model.
-
-