Class ComboComponent<T>
- 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<T>,IComboParameterization<T>,ComboViewModel>
-
- com._1c.g5.aef2.standard.components.ComboComponent<T>
-
- All Implemented Interfaces:
IComponent<IValue<T>>
,IEventChannel
public class ComboComponent<T> extends AbstractControlComponent<IValue<T>,IComboParameterization<T>,ComboViewModel>
The combo component.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Constructor Summary
Constructors Constructor Description ComboComponent(IComboParameterization<T> parameterization)
Creates a new combo component with the given parameterization.ComboComponent(Collection<T> items)
Creates a new combo component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComboViewModel
createControlViewModel()
Creates control view model instance.protected String
getItemLabel(T 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, attachToModel, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, detachFromModel, 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
-
ComboComponent
public ComboComponent(IComboParameterization<T> parameterization)
Creates a new combo component with the given parameterization.- Parameters:
parameterization
- the parameterization
-
ComboComponent
public ComboComponent(Collection<T> items)
Creates a new combo component.- Parameters:
items
- the collection of items that are potential values of the combo.
-
-
Method Detail
-
createControlViewModel
protected ComboViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<IValue<T>,IComboParameterization<T>,ComboViewModel>
- Returns:
- a newly created control view model.
-
-