Class DtMappedCheckboxComponent<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>,ILabeledParametrization,CheckboxViewModel>
com._1c.g5.v8.dt.ui.aef.component.DtMappedCheckboxComponent<T>
- All Implemented Interfaces:
IComponent<IValue<T>>
,IEventChannel
public abstract class DtMappedCheckboxComponent<T>
extends AbstractControlComponent<IValue<T>,ILabeledParametrization,CheckboxViewModel>
The DT checkbox component that can be mapped on any model type.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance.DtMappedCheckboxComponent
(ILabeledParametrization parameterization) Creates a new instance with parameterization. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract T
convertBooleanToValue
(Boolean value) Converts the checkbox state value to model value.protected abstract boolean
convertValueToBoolean
(T modelValue) Converts the model value to the checkbox state.protected CheckboxViewModel
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 Details
-
DtMappedCheckboxComponent
Creates a new instance with parameterization.- Parameters:
parameterization
- the parameterization.
-
DtMappedCheckboxComponent
public DtMappedCheckboxComponent()Creates a new instance.
-
-
Method Details
-
createControlViewModel
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IValue<T>,
ILabeledParametrization, CheckboxViewModel> - Returns:
- a newly created control view model.
-
convertBooleanToValue
Converts the checkbox state value to model value.- Parameters:
value
- the boolean value- Returns:
- the model value
-
convertValueToBoolean
Converts the model value to the checkbox state.- Parameters:
modelValue
- the model value- Returns:
- the boolean value
-