Class ChartReferenceValueComponentPart
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart<NumberValueControlViewModel,NumberValue>
-
- com._1c.g5.v8.dt.md.ui.aef.components.value.NumberValueComponentPart
-
- com._1c.g5.v8.dt.form.ui.chart.aef.components.reference.ChartReferenceValueComponentPart
-
- All Implemented Interfaces:
IValueComponentPart<NumberValueControlViewModel,IValueModel,NumberValue>
public class ChartReferenceValueComponentPart extends NumberValueComponentPart
The component part forNumberValue
model part of chart reference line / band.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ChartReferenceValueComponentPart.IClearButtonListener
Instance of this class can listen to clear button press.
-
Constructor Summary
Constructors Constructor Description ChartReferenceValueComponentPart()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClearButtonListener(ChartReferenceValueComponentPart.IClearButtonListener listener)
Adds clear button listener.NumberValueControlViewModel
createViewModel(IValueModel model)
Creates a view model for the givenmodel
.void
handleButtonPressed(NumberValueControlViewModel viewModel, IValueModel model)
Handles the button events.-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.value.NumberValueComponentPart
createMapper, getViewModelBindingFeature
-
Methods inherited from class com._1c.g5.v8.dt.md.ui.aef.components.value.AbstractValueComponentPart
bindViewModel, getTypeName, hasClearAction, isEditable, isSuitable, isSuitableTypeName, isSuitableValue
-
-
-
-
Method Detail
-
createViewModel
public NumberValueControlViewModel createViewModel(IValueModel model)
Description copied from interface:IValueComponentPart
Creates a view model for the givenmodel
.- Specified by:
createViewModel
in interfaceIValueComponentPart<NumberValueControlViewModel,IValueModel,NumberValue>
- Overrides:
createViewModel
in classNumberValueComponentPart
- Parameters:
model
- theIValueModel
.- Returns:
- the newly created view model.
-
handleButtonPressed
public void handleButtonPressed(NumberValueControlViewModel viewModel, IValueModel model)
Description copied from interface:IValueComponentPart
Handles the button events.- Specified by:
handleButtonPressed
in interfaceIValueComponentPart<NumberValueControlViewModel,IValueModel,NumberValue>
- Overrides:
handleButtonPressed
in classAbstractValueComponentPart<NumberValueControlViewModel,NumberValue>
- Parameters:
viewModel
- the view model.model
- theIValueModel
.
-
addClearButtonListener
public void addClearButtonListener(ChartReferenceValueComponentPart.IClearButtonListener listener)
Adds clear button listener.- Parameters:
listener
- - listener to add. Cannot benull
.
-
-