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:
CommonAttributeDataSeparationComponent
,ConfigurationCompatibilityModeComponent
,InformationRegisterPeriodicityComponent
,MoxelPatternComponent
,MoxelSpreadsheetLineComponent
,TableLocationComboSelectComponent
,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
Constructors Constructor Description EnumComponent(IEnumParameterization parameterization)
Instantiates a newEnumComponent
with the given parameterization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ILabelProvider
createEnumLabelProvider()
Create label provider for values from this enum componentprotected IMapper<T,ComboItemViewModel>
createMapper()
Creates aIMapper
instance that maps the model objects to the combo item view model objects.void
dispose()
Disposes this component, its view models and its child components.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.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
-
EnumComponent
public EnumComponent(IEnumParameterization parameterization)
Instantiates a newEnumComponent
with the given parameterization.- Parameters:
parameterization
- the parameterization.
-
-
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<T>
- Overrides:
dispose
in classAbstractDtSelectComponent<IValue<T>,IEnumParameterization,ComboSelectViewModel>
-
createEnumLabelProvider
protected ILabelProvider createEnumLabelProvider()
Create label provider for values from this enum component
- Returns:
- label provider for enum component, never
null
-
createMapper
protected IMapper<T,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<T,IValue<T>,IEnumParameterization>
- Returns:
- the
IMapper
-
getComboItems
protected Collection<T> getComboItems()
Description copied from class:AbstractDtComboSelectComponent
Returns a collection of the model items that be available at the combo.- Specified by:
getComboItems
in classAbstractDtComboSelectComponent<T,IValue<T>,IEnumParameterization>
- Returns:
- the collection of the objects.
-
-