Class ComboLabelComponent<M,VM extends ComboLabelViewModel>
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>,IComboLabeledParameterization<M>,VM>
com._1c.g5.aef2.standard.components.ComboLabelComponent<M,VM>
- All Implemented Interfaces:
IComponent<IValue<M>>,IEventChannel
- Direct Known Subclasses:
ExtendedComboLabelComponent
public class ComboLabelComponent<M,VM extends ComboLabelViewModel>
extends AbstractControlComponent<IValue<M>,IComboLabeledParameterization<M>,VM>
Combo label component that shows lable and picture expanded as combo.
-
Nested Class Summary
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection -
Constructor Summary
ConstructorsConstructorDescriptionComboLabelComponent(IComboLabeledParameterization<M> parametrization) Constructor ofComboLabelComponent. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidAttaches this component to the model.protected VMCreates view model.protected VMCreates control view model instance.protected voidDetaches this component from the model.protected StringgetItemLabel(M item) Get ui text representation for given item.Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
createViewModels, disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModelsMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatusMethods 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 Details
-
ComboLabelComponent
Constructor ofComboLabelComponent.- Parameters:
parametrization- the combo label parametrization, cannot benull
-
-
Method Details
-
attachToModel
protected void attachToModel()Description copied from class:ComponentAttaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModelin classComponent<IValue<M>,IComboLabeledParameterization<M>>
-
detachFromModel
protected void detachFromModel()Description copied from class:ComponentDetaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModelin classComponent<IValue<M>,IComboLabeledParameterization<M>>
-
createControlViewModel
Description copied from class:AbstractControlComponentCreates control view model instance.- Specified by:
createControlViewModelin classAbstractControlComponent<IValue<M>,IComboLabeledParameterization<M>, VM extends ComboLabelViewModel> - Returns:
- a newly created control view model.
-
createComboLabelViewModel
Creates view model.- Returns:
- the combo label view model, cannot be
null
-
getItemLabel
Get ui text representation for given item.Used in default domain-view mapper.
- Parameters:
item- the target model item to get text label, can benull- Returns:
- return text representation for given item, never
null
-