Package com._1c.g5.v8.dt.ui.aef.mappers
Class AefLabelCheckStateMapper<M,T extends CheckedItemViewModel>
- java.lang.Object
-
- com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper<M,T>
-
- com._1c.g5.v8.dt.ui.aef.mappers.AefLabelCheckStateMapper<M,T>
-
- All Implemented Interfaces:
IMapper<M,T>
,IViewModelsMapper<M,T>
- Direct Known Subclasses:
NavigatorTableComponent.NavigatorMapper
,NavigatorTreeComponent.NavigatorMapper
public class AefLabelCheckStateMapper<M,T extends CheckedItemViewModel> extends AefLabelMapper<M,T>
IMapper
implementation that maps model object with the view structure specific.
-
-
Field Summary
-
Fields inherited from class com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper
labelProvider
-
-
Constructor Summary
Constructors Constructor Description AefLabelCheckStateMapper(ILabelProvider labelProvider, boolean needDecorate, ICheckStateProvider checkStateProvider)
Creates a new mapper.AefLabelCheckStateMapper(ILabelProvider labelProvider, ICheckStateProvider checkStateProvider)
Creates a new mapper.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
updateItemViewModel(T item, M modelValue)
Updates item view model.-
Methods inherited from class com._1c.g5.v8.dt.ui.aef.mappers.AefLabelMapper
createItemViewModel, createMapKey, createModelToView, getMappedModels, getMappedViewModels, mapModelToView, mapViewToModel
-
-
-
-
Constructor Detail
-
AefLabelCheckStateMapper
public AefLabelCheckStateMapper(ILabelProvider labelProvider, ICheckStateProvider checkStateProvider)
Creates a new mapper.- Parameters:
labelProvider
- the label provider for mapping labels of domain model object to view model, cannot benull
checkStateProvider
- the check state provider for mapping the check state of the model object to view model state, cannot benull
-
AefLabelCheckStateMapper
public AefLabelCheckStateMapper(ILabelProvider labelProvider, boolean needDecorate, ICheckStateProvider checkStateProvider)
Creates a new mapper.- Parameters:
labelProvider
- the label provider for mapping labels of domain model object to view model, cannot benull
needDecorate
-true
if need to wrappILabelProvider
toDecoratingLabelProvider
,false
otherwisecheckStateProvider
- the check state provider for mapping the check state of the model object to view model state, cannot benull
-
-
Method Detail
-
updateItemViewModel
public void updateItemViewModel(T item, M modelValue)
Updates item view model.- Specified by:
updateItemViewModel
in interfaceIViewModelsMapper<M,T extends CheckedItemViewModel>
- Overrides:
updateItemViewModel
in classAefLabelMapper<M,T extends CheckedItemViewModel>
- Parameters:
item
- the item view model, cannot benull
modelValue
- modelValue the model value, cannot benull
-
-