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 void
Attaches this component to the model.protected VM
Creates view model.protected VM
Creates control view model instance.protected void
Detaches this component from the model.protected String
getItemLabel
(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 Details
-
ComboLabelComponent
Constructor ofComboLabelComponent
.- Parameters:
parametrization
- the combo label parametrization, cannot benull
-
-
Method Details
-
attachToModel
protected void attachToModel()Description copied from class:Component
Attaches this component to the model. Override it to add some listeners to the model.- Overrides:
attachToModel
in classComponent<IValue<M>,
IComboLabeledParameterization<M>>
-
detachFromModel
protected void detachFromModel()Description copied from class:Component
Detaches this component from the model. Override it to remove listeners from the model.- Overrides:
detachFromModel
in classComponent<IValue<M>,
IComboLabeledParameterization<M>>
-
createControlViewModel
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in 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
-