Class AbstractDtEditableComboComponent<T,M extends IValue<T>,P extends IEditableComboParameterization>
- 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<M,P,VM>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent<M,P,EditableComboViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtEditableComboComponent<T,M,P>
-
- All Implemented Interfaces:
IComponent<M>
,IEventChannel
- Direct Known Subclasses:
DtBorderStyleComponent
,HandlerSelectComponent
,HandlerSelectionComponent
,HandlerSelectionComponent
public abstract class AbstractDtEditableComboComponent<T,M extends IValue<T>,P extends IEditableComboParameterization> extends AbstractDtSelectComponent<M,P,EditableComboViewModel>
Abstract implementation of the component for manipulating with the model as with the editable value via combo box.
Also it allows to specify the collection of the buttons that will be added at the action bar placed near the combo.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com._1c.g5.aef2.standard.components.StandardComponent
StandardComponent.BindingDirection
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
CLEAR_BUTTON_COMMAND_ID, DEFAULT_CONTEXT, OPEN_BUTTON_COMMAND_ID, SELECT_BUTTON_COMMAND_ID
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDtEditableComboComponent(P parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
bindViewModelText(IValue<T> model, EditableComboViewModel viewModel)
Binds the model to view model text feature.protected EditableComboViewModel
createControlViewModel()
Creates control view model instance.protected abstract IMapper<T,ComboItemViewModel>
createMapper()
Creates aIMapper
instance that maps the model objects to the combo item view model objects.protected abstract Collection<T>
getComboItems()
Returns a collection of the model items that be available at the combo.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createButtons, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, dispose, handleButtonClicked
-
Methods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
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, 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
-
AbstractDtEditableComboComponent
protected AbstractDtEditableComboComponent(P parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization.
-
-
Method Detail
-
createControlViewModel
protected EditableComboViewModel createControlViewModel()
Description copied from class:AbstractControlComponent
Creates control view model instance.- Specified by:
createControlViewModel
in classAbstractControlComponent<M extends IValue<T>,P extends IEditableComboParameterization,EditableComboViewModel>
- Returns:
- a newly created control view model.
-
bindViewModelText
protected abstract void bindViewModelText(IValue<T> model, EditableComboViewModel viewModel)
Binds the model to view model text feature.- Parameters:
model
- the model.viewModel
- the view model.
-
createMapper
protected abstract IMapper<T,ComboItemViewModel> createMapper()
Creates aIMapper
instance that maps the model objects to the combo item view model objects.- Returns:
- the
IMapper
-
getComboItems
protected abstract Collection<T> getComboItems()
Returns a collection of the model items that be available at the combo.- Returns:
- the collection of the objects.
-
-