Class HandlerSelectComponent
- 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<String,IHandlerModel,IEditableComboParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.HandlerSelectComponent
-
- All Implemented Interfaces:
IComponent<IHandlerModel>
,IEventChannel
public class HandlerSelectComponent extends AbstractDtEditableComboComponent<String,IHandlerModel,IEditableComboParameterization>
Handler selection component.
-
-
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 Constructor Description HandlerSelectComponent()
Create instance ofHandlerSelectComponent
HandlerSelectComponent(IEditableComboParameterization parameterization)
Create instance ofHandlerSelectComponent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
bindViewModelText(IValue<String> model, EditableComboViewModel viewModel)
Binds the model to view model text feature.protected Collection<ButtonItemViewModel>
createButtons()
Creates a collection of theButtonItemViewModel
that will be added to the component view model.protected IMapper<String,ComboItemViewModel>
createMapper()
Creates aIMapper
instance that maps the model objects to the combo item view model objects.protected Collection<String>
getComboItems()
Returns a collection of the model items that be available at the combo.protected void
handleButtonClicked(IViewModel viewModel)
Handles the button clicked event.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtEditableComboComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, dispose
-
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
-
HandlerSelectComponent
public HandlerSelectComponent(IEditableComboParameterization parameterization)
Create instance ofHandlerSelectComponent
- Parameters:
parameterization
- , cannot benull
-
HandlerSelectComponent
public HandlerSelectComponent()
Create instance ofHandlerSelectComponent
-
-
Method Detail
-
bindViewModelText
protected void bindViewModelText(IValue<String> model, EditableComboViewModel viewModel)
Description copied from class:AbstractDtEditableComboComponent
Binds the model to view model text feature.- Specified by:
bindViewModelText
in classAbstractDtEditableComboComponent<String,IHandlerModel,IEditableComboParameterization>
- Parameters:
model
- the model.viewModel
- the view model.
-
handleButtonClicked
protected void handleButtonClicked(IViewModel viewModel)
Description copied from class:AbstractDtSelectComponent
Handles the button clicked event.- Overrides:
handleButtonClicked
in classAbstractDtSelectComponent<IHandlerModel,IEditableComboParameterization,EditableComboViewModel>
- Parameters:
viewModel
- the view model of the event sender.
-
createMapper
protected IMapper<String,ComboItemViewModel> createMapper()
Description copied from class:AbstractDtEditableComboComponent
Creates aIMapper
instance that maps the model objects to the combo item view model objects.- Specified by:
createMapper
in classAbstractDtEditableComboComponent<String,IHandlerModel,IEditableComboParameterization>
- Returns:
- the
IMapper
-
getComboItems
protected Collection<String> getComboItems()
Description copied from class:AbstractDtEditableComboComponent
Returns a collection of the model items that be available at the combo.- Specified by:
getComboItems
in classAbstractDtEditableComboComponent<String,IHandlerModel,IEditableComboParameterization>
- Returns:
- the collection of the objects.
-
createButtons
protected Collection<ButtonItemViewModel> createButtons()
Description copied from class:AbstractDtSelectComponent
Creates a collection of theButtonItemViewModel
that will be added to the component view model.- Overrides:
createButtons
in classAbstractDtSelectComponent<IHandlerModel,IEditableComboParameterization,EditableComboViewModel>
- Returns:
- the collection of the
ButtonItemViewModel
.
-
-