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
Constructors Constructor Description ComboLabelComponent(IComboLabeledParameterization<M> parametrization)Constructor ofComboLabelComponent.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattachToModel()Attaches this component to the model.protected VMcreateComboLabelViewModel()Creates view model.protected VMcreateControlViewModel()Creates control view model instance.protected voiddetachFromModel()Detaches 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, 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
-
ComboLabelComponent
public ComboLabelComponent(IComboLabeledParameterization<M> parametrization)
Constructor ofComboLabelComponent.- Parameters:
parametrization- the combo label parametrization, cannot benull
-
-
Method Detail
-
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
protected VM 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
protected VM createComboLabelViewModel()
Creates view model.- Returns:
- the combo label view model, cannot be
null
-
-