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 void
attachToModel()
Attaches this component to the model.protected VM
createComboLabelViewModel()
Creates view model.protected VM
createControlViewModel()
Creates control view model instance.protected void
detachFromModel()
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 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: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
protected VM 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
protected VM createComboLabelViewModel()
Creates view model.- Returns:
- the combo label view model, cannot be
null
-
-