Class AbstractSeriesItemEvent
java.lang.Object
com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
com.vaadin.flow.component.charts.events.internal.AbstractSeriesItemEvent
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
DataAddedEvent
,DataUpdatedEvent
Base class for series item events. Contains the information about series and
exactly one of item or value.
- Since:
- 2.0
- See Also:
-
Constructor Summary
ConstructorDescriptionAbstractSeriesItemEvent
(Series series, DataSeriesItem item) Constructs the event with a series item (without the value).AbstractSeriesItemEvent
(Series series, Number value) Constructs the event with a value (without the series item). -
Method Summary
Methods inherited from class com.vaadin.flow.component.charts.events.internal.AbstractSeriesEvent
getSeries
-
Constructor Details
-
AbstractSeriesItemEvent
Constructs the event with a value (without the series item).- Parameters:
series
- Series.value
- Value.
-
AbstractSeriesItemEvent
Constructs the event with a series item (without the value).- Parameters:
series
- Series.item
- Series item..
-
-
Method Details
-
getItem
The item added. May be null if value != null.- Returns:
- The item added.
-
getValue
The value added. May be null if item != null.- Returns:
- The value added.
-