Class CharacteristicsDescriptionFieldComboComponent
- 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,ComboSelectViewModel>
-
- com._1c.g5.v8.dt.ui.aef.component.AbstractDtComboSelectComponent<Field,ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
-
- com._1c.g5.v8.dt.md.ui.aef.components.CharacteristicsDescriptionFieldComboComponent
-
- All Implemented Interfaces:
IComponent<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>>
,IEventChannel
public class CharacteristicsDescriptionFieldComboComponent extends AbstractDtComboSelectComponent<Field,ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
The component that works with @CharacteristicsDescription
Field
models as with selectable values from DT 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 Constructor Description CharacteristicsDescriptionFieldComboComponent()
Creates a new component.CharacteristicsDescriptionFieldComboComponent(IComboSelectParameterization parameterization)
Creates a new component.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
attachToModel()
Attaches this component to the model.protected Collection<ButtonItemViewModel>
createButtons()
Creates a collection of theButtonItemViewModel
that will be added to the component view model.protected IMapper<Field,ComboItemViewModel>
createMapper()
Creates aIMapper
instance that maps the model objects to the combo item view model objects.protected void
detachFromModel()
Detaches this component from the model.void
dispose()
Disposes this component, its view models and its child components.protected Collection<Field>
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.AbstractDtComboSelectComponent
createControlViewModel
-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, 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, beginExternalUpdate, checkComponents, checkViewModels, commit, createComponents, 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
-
CharacteristicsDescriptionFieldComboComponent
public CharacteristicsDescriptionFieldComboComponent(IComboSelectParameterization parameterization)
Creates a new component.- Parameters:
parameterization
- the parameterization, cannot benull
-
CharacteristicsDescriptionFieldComboComponent
public CharacteristicsDescriptionFieldComboComponent()
Creates a new component.
-
-
Method Detail
-
dispose
public void dispose()
Description copied from interface:IComponent
Disposes this component, its view models and its child components.- Specified by:
dispose
in interfaceIComponent<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>>
- Overrides:
dispose
in classAbstractDtSelectComponent<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization,ComboSelectViewModel>
-
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<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
-
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<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization,ComboSelectViewModel>
- Returns:
- the collection of the
ButtonItemViewModel
.
-
createMapper
protected IMapper<Field,ComboItemViewModel> createMapper()
Description copied from class:AbstractDtComboSelectComponent
Creates aIMapper
instance that maps the model objects to the combo item view model objects.- Specified by:
createMapper
in classAbstractDtComboSelectComponent<Field,ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
- Returns:
- the
IMapper
-
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<ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
-
getComboItems
protected Collection<Field> getComboItems()
Description copied from class:AbstractDtComboSelectComponent
Returns a collection of the model items that be available at the combo.- Specified by:
getComboItems
in classAbstractDtComboSelectComponent<Field,ICharacteristicsDescriptionFieldModel<org.eclipse.emf.ecore.EObject>,IComboSelectParameterization>
- Returns:
- the collection of the objects.
-
-