Class ExtendedLabelComponent
- 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<MdPropertyState,LabelExtensionViewModel>
-
- com._1c.g5.v8.dt.md.ui.extension.aef.components.ExtendedLabelComponent
-
- All Implemented Interfaces:
IComponent<IValue<MdPropertyState>>
,IEventChannel
public class ExtendedLabelComponent extends CheckableLabelComponent<MdPropertyState,LabelExtensionViewModel>
Extended label component that shows lable and allows to change metadata property state.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description ExtendedLabelComponent(String text, MdPropertyType type)
Constructor ofExtendedLabelComponent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MdPropertyState
convertBooleanToValue(Boolean viewValue)
Converts the checkbox state value to model value.protected Boolean
convertValueToBoolean(MdPropertyState modelValue)
Converts the model value to the checkbox state.protected LabelExtensionViewModel
createCheckedLabelViewModel()
Creates view model.-
Methods inherited from class com._1c.g5.aef2.standard.components.CheckableLabelComponent
attachToModel, createControlViewModel, detachFromModel
-
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, 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
-
ExtendedLabelComponent
public ExtendedLabelComponent(String text, MdPropertyType type)
Constructor ofExtendedLabelComponent
.- Parameters:
text
- the label text ornull
if label not neededtype
- the metadata property type to change state for, cannot benull
-
-
Method Detail
-
createCheckedLabelViewModel
protected LabelExtensionViewModel createCheckedLabelViewModel()
Description copied from class:CheckableLabelComponent
Creates view model.- Overrides:
createCheckedLabelViewModel
in classCheckableLabelComponent<MdPropertyState,LabelExtensionViewModel>
- Returns:
- the checked label view model, cannot be
null
-
convertBooleanToValue
protected MdPropertyState convertBooleanToValue(Boolean viewValue)
Description copied from class:CheckableLabelComponent
Converts the checkbox state value to model value.- Overrides:
convertBooleanToValue
in classCheckableLabelComponent<MdPropertyState,LabelExtensionViewModel>
- Returns:
- the model value, cannot be
null
-
convertValueToBoolean
protected Boolean convertValueToBoolean(MdPropertyState modelValue)
Description copied from class:CheckableLabelComponent
Converts the model value to the checkbox state.- Overrides:
convertValueToBoolean
in classCheckableLabelComponent<MdPropertyState,LabelExtensionViewModel>
- Parameters:
modelValue
- the model value, cannot benull
- Returns:
- the boolean value, cannot be
null
-
-