Class EnumComponent<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<M,P,VM>
com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent<M,P,ComboSelectViewModel>
com._1c.g5.v8.dt.ui.aef.component.AbstractDtComboSelectComponent<T,IValue<T>,IEnumParameterization>
com._1c.g5.v8.dt.ui.aef.component.EnumComponent<T>
- Type Parameters:
T- the enumeration type
- All Implemented Interfaces:
IComponent<IValue<T>>,IEventChannel
- Direct Known Subclasses:
AdditionTypeSelectionComponent,CaCerticicateSourceTypeComponent,CatalogSubordinationUseComponent,CommonAttributeDataSeparationComponent,ConfigurationCompatibilityModeComponent,DependenceOnCalculationTypesComponent,FormItemTypeComponent,IndexingComponent,InformationRegisterPeriodicityComponent,MoxelPatternComponent,MoxelSpreadsheetLineComponent,SearchStringLocationComponent,VersionedEnumComponent
public class EnumComponent<T>
extends AbstractDtComboSelectComponent<T,IValue<T>,IEnumParameterization>
Component for managing the model that is the one possible value of some
enumeration.
-
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
ConstructorsConstructorDescriptionEnumComponent(IEnumParameterization parameterization) Instantiates a newEnumComponentwith the given parameterization. -
Method Summary
Modifier and TypeMethodDescriptionprotected ILabelProviderCreate label provider for values from this enum componentprotected IMapper<T,ComboItemViewModel> Creates aIMapperinstance that maps the model objects to the combo item view model objects.voiddispose()Disposes this component, its view models and its child components.protected Collection<T>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
createControlViewModelMethods inherited from class com._1c.g5.v8.dt.ui.aef.component.AbstractDtSelectComponent
createButtonItem, createButtons, createClearButtonItem, createOpenButtonItem, createSelectButtonItem, createViewModels, handleButtonClickedMethods inherited from class com._1c.g5.aef2.standard.components.AbstractControlComponent
disposeViewModels, getControlViewModel, handleExternalValidationEvent, isEditable, refresh, setLayoutData, updateViewModelsMethods inherited from class com._1c.g5.aef2.standard.components.StandardComponent
bindList, bindModel, bindValue, bindValue, createDefaultViewModelList, createDefaultViewModelValue, getLayoutData, isEnabled, isPassive, setEnabled, setFocus, updateViewModelStatusMethods 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 Details
-
EnumComponent
Instantiates a newEnumComponentwith the given parameterization.- Parameters:
parameterization- the parameterization.
-
-
Method Details
-
dispose
public void dispose()Description copied from interface:IComponentDisposes this component, its view models and its child components.- Specified by:
disposein interfaceIComponent<T>- Overrides:
disposein classAbstractDtSelectComponent<IValue<T>,IEnumParameterization, ComboSelectViewModel>
-
createEnumLabelProvider
Create label provider for values from this enum component
- Returns:
- label provider for enum component, never
null
-
createMapper
Description copied from class:AbstractDtComboSelectComponentCreates aIMapperinstance that maps the model objects to the combo item view model objects.- Specified by:
createMapperin classAbstractDtComboSelectComponent<T,IValue<T>, IEnumParameterization> - Returns:
- the
IMapper
-
getComboItems
Description copied from class:AbstractDtComboSelectComponentReturns a collection of the model items that be available at the combo.- Specified by:
getComboItemsin classAbstractDtComboSelectComponent<T,IValue<T>, IEnumParameterization> - Returns:
- the collection of the objects.
-