Class BorderValueComponentPart
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart<BorderValueControlViewModel,BorderValue>
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.BorderValueComponentPart
-
- All Implemented Interfaces:
IValueComponentPart<BorderValueControlViewModel,IValueModel,BorderValue>
public class BorderValueComponentPart extends AbstractValueComponentPart<BorderValueControlViewModel,BorderValue>
TheIValueComponentPart
implementation forBorderValue
.
-
-
Constructor Summary
Constructors Constructor Description BorderValueComponentPart()
Creates a new component part.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindViewModel(BorderValueControlViewModel viewModel, IValueModel valueModel, IMapper<BorderValue,?> mapper)
Binds the given view model to model.IMapper<BorderValue,?>
createMapper(BorderValueControlViewModel viewModel, IValueModel model)
Returns the newly created mapper that maps theValue
to view model.BorderValueControlViewModel
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.void
handleButtonPressed(BorderValueControlViewModel viewModel, IValueModel model)
Handles the button events.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart
getTypeName, hasClearAction, isEditable, isSuitable, isSuitableTypeName, isSuitableValue
-
-
-
-
Method Detail
-
createViewModel
public BorderValueControlViewModel createViewModel(IValueModel model)
Description copied from interface:IValueComponentPart
Creates a view model for the givenmodel
.- Parameters:
model
- theIValueModel
.- Returns:
- the newly created view model.
-
handleButtonPressed
public void handleButtonPressed(BorderValueControlViewModel viewModel, IValueModel model)
Description copied from interface:IValueComponentPart
Handles the button events.- Specified by:
handleButtonPressed
in interfaceIValueComponentPart<BorderValueControlViewModel,IValueModel,BorderValue>
- Overrides:
handleButtonPressed
in classAbstractValueComponentPart<BorderValueControlViewModel,BorderValue>
- Parameters:
viewModel
- the view model.model
- theIValueModel
.
-
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
.
-
bindViewModel
public void bindViewModel(BorderValueControlViewModel viewModel, IValueModel valueModel, IMapper<BorderValue,?> 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<BorderValueControlViewModel,IValueModel,BorderValue>
- Overrides:
bindViewModel
in classAbstractValueComponentPart<BorderValueControlViewModel,BorderValue>
- Parameters:
viewModel
- the view model to bind.valueModel
- theIValueModel
.mapper
- theIMapper
instance.
-
createMapper
public IMapper<BorderValue,?> createMapper(BorderValueControlViewModel 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.
-
-