Class BooleanValueComponentPart
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart<BooleanValueControlViewModel,BooleanValue>
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.BooleanValueComponentPart
-
- All Implemented Interfaces:
IValueComponentPart<BooleanValueControlViewModel,IValueModel,BooleanValue>
public class BooleanValueComponentPart extends AbstractValueComponentPart<BooleanValueControlViewModel,BooleanValue>
TheIValueComponentPart
implementation forBooleanValue
.
-
-
Constructor Summary
Constructors Constructor Description BooleanValueComponentPart()
Creates a new component part.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindViewModel(BooleanValueControlViewModel viewModel, IValueModel model, IMapper<BooleanValue,?> mapper)
Binds the given view model to model.IMapper<BooleanValue,?>
createMapper(BooleanValueControlViewModel viewModel, IValueModel model)
Returns the newly created mapper that maps theValue
to view model.BooleanValueControlViewModel
createViewModel(IValueModel model)
Creates a view model for the givenmodel
.org.eclipse.emf.ecore.EStructuralFeature
getViewModelBindingFeature()
Returns the view model feature that is binds by value component.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart
getTypeName, handleButtonPressed, hasClearAction, isEditable, isSuitable, isSuitableTypeName, isSuitableValue
-
-
-
-
Method Detail
-
createViewModel
public BooleanValueControlViewModel createViewModel(IValueModel model)
Description copied from interface:IValueComponentPart
Creates a view model for the givenmodel
.- Parameters:
model
- theIValueModel
.- Returns:
- the newly created view model.
-
bindViewModel
public void bindViewModel(BooleanValueControlViewModel viewModel, IValueModel model, IMapper<BooleanValue,?> mapper)
Description copied from interface:IValueComponentPart
Binds the given view model to model. It is the extra binding that is needed to fill view model with additional data.
NOTE: implement this functionality only if the default component binding usingIValueComponentPart.getViewModelBindingFeature()
and#createMapper()
is not enough.- Specified by:
bindViewModel
in interfaceIValueComponentPart<BooleanValueControlViewModel,IValueModel,BooleanValue>
- Overrides:
bindViewModel
in classAbstractValueComponentPart<BooleanValueControlViewModel,BooleanValue>
- Parameters:
viewModel
- the view model to bind.model
- theIValueModel
.mapper
- theIMapper
instance.
-
getViewModelBindingFeature
public org.eclipse.emf.ecore.EStructuralFeature getViewModelBindingFeature()
Description copied from interface:IValueComponentPart
Returns the view model feature that is binds by value component.- Returns:
- the view model feature that is binds by
value component or
null
.
-
createMapper
public IMapper<BooleanValue,?> createMapper(BooleanValueControlViewModel viewModel, IValueModel model)
Description copied from interface:IValueComponentPart
Returns the newly created mapper that maps theValue
to view model.- Parameters:
viewModel
- the view model.model
- theIValueModel
.- Returns:
- the mapper.
-
-