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:
GraphicalSchemePictureStyleComponent
,PictureSizeComponent
public abstract class VersionedEnumComponent<T> extends EnumComponent<T>
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
Constructors Constructor Description VersionedEnumComponent(IEnumParameterization parameterization)
The constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract Collection<T>
filter(Collection<T> values, Version version)
Filters values for given version.protected 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.EnumComponent
createEnumLabelProvider, createMapper, dispose
-
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, createButtons, 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, 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
-
VersionedEnumComponent
public VersionedEnumComponent(IEnumParameterization parameterization)
The constructor.- Parameters:
parameterization
- The parametrization.
-
-
Method Detail
-
getComboItems
protected Collection<T> getComboItems()
Description copied from class:AbstractDtComboSelectComponent
Returns a collection of the model items that be available at the combo.- Overrides:
getComboItems
in classEnumComponent<T>
- Returns:
- the collection of the objects.
-
filter
protected abstract Collection<T> filter(Collection<T> values, Version version)
Filters values for given version.- Parameters:
values
- the values, cannot benull
.version
- the version, cannot benull
.- Returns:
- the filtered values.
-
-