Class CheckableLabelComponent<M,VM extends CheckableLabelViewModel>
- 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<M>,ILabeledParametrization,VM>
- 
- com._1c.g5.aef2.standard.components.CheckableLabelComponent<M,VM>
 
 
 
 
- 
- All Implemented Interfaces:
- IComponent<IValue<M>>,- IEventChannel
 - Direct Known Subclasses:
- ExtendedLabelComponent
 
 public class CheckableLabelComponent<M,VM extends CheckableLabelViewModel> extends AbstractControlComponent<IValue<M>,ILabeledParametrization,VM> Checkable label component that shows lable and checkbox.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponentStandardComponent.BindingDirection
 
- 
 - 
Constructor SummaryConstructors Constructor Description CheckableLabelComponent(ILabeledParametrization parametrization)Constructor ofCheckableLabelComponent.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattachToModel()Attaches this component to the model.protected MconvertBooleanToValue(Boolean viewValue)Converts the checkbox state value to model value.protected BooleanconvertValueToBoolean(M modelValue)Converts the model value to the checkbox state.protected VMcreateCheckedLabelViewModel()Creates view model.protected VMcreateControlViewModel()Creates control view model instance.protected voiddetachFromModel()Detaches this component from the model.- 
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponentcreateViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModels
 - 
Methods inherited from class com._1c.g5.aef2.standard.components.StandardComponentbindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatus
 - 
Methods inherited from class com._1c.g5.aef2.components.ComponentaddComponent, addListener, addViewModel, areChildCommitsEnabled, areChildRefreshEnabled, areComponentsCreated, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, 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- 
CheckableLabelComponentpublic CheckableLabelComponent(ILabeledParametrization parametrization) Constructor ofCheckableLabelComponent.- Parameters:
- parametrization- the label parametrization, cannot be- null
 
 
- 
 - 
Method Detail- 
attachToModelprotected void attachToModel() Description copied from class:ComponentAttaches this component to the model. Override it to add some listeners to the model.- Overrides:
- attachToModelin class- Component<IValue<M>,ILabeledParametrization>
 
 - 
detachFromModelprotected void detachFromModel() Description copied from class:ComponentDetaches this component from the model. Override it to remove listeners from the model.- Overrides:
- detachFromModelin class- Component<IValue<M>,ILabeledParametrization>
 
 - 
createControlViewModelprotected VM createControlViewModel() Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
- createControlViewModelin class- AbstractControlComponent<IValue<M>,ILabeledParametrization,VM extends CheckableLabelViewModel>
- Returns:
- a newly created control view model.
 
 - 
createCheckedLabelViewModelprotected VM createCheckedLabelViewModel() Creates view model.- Returns:
- the checked label view model, cannot be null
 
 - 
convertBooleanToValueprotected M convertBooleanToValue(Boolean viewValue) Converts the checkbox state value to model value.- Parameters:
- value- the boolean value, cannot be- null
- Returns:
- the model value, cannot be null
 
 
- 
 
-