Class VersionedEnumComponent<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>
com._1c.g5.v8.dt.ui.aef.component.VersionedEnumComponent<T>
- Type Parameters:
T- The enumeration type
- All Implemented Interfaces:
IComponent<IValue<T>>,IEventChannel
- Direct Known Subclasses:
ChartLabelLocationComponent,ChartLabelTypeComponent,ChartTypeComponent,FormCheckBoxKindComponent,FormChildrenAlignComponent,FormChildrenGroupComponent,FormPagesRepresentationComponent,GraphicalSchemePictureStyleComponent,GroupBehaviorComponent,MarkerTypeComponent,PictureSizeComponent
Version-aware component for managing the model that is the one possible value of some enumeration.
Make sure the model is instance of IVersionedModel
-
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
ConstructorsConstructorDescriptionVersionedEnumComponent(IEnumParameterization parameterization) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract Collection<T>filter(Collection<T> values, Version version) Filters values for given version.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.EnumComponent
createEnumLabelProvider, createMapper, disposeMethods 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
-
VersionedEnumComponent
The constructor.- Parameters:
parameterization- The parametrization.
-
-
Method Details
-
getComboItems
Description copied from class:AbstractDtComboSelectComponentReturns a collection of the model items that be available at the combo.- Overrides:
getComboItemsin classEnumComponent<T>- Returns:
- the collection of the objects.
-
filter
Filters values for given version.- Parameters:
values- the values, cannot benull.version- the version, cannot benull.- Returns:
- the filtered values.
-