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

public abstract class AbstractSeriesItemEvent extends AbstractSeriesEvent
Base class for series item events. Contains the information about series and exactly one of item or value.
Since:
2.0
See Also:
  • Constructor Details

    • AbstractSeriesItemEvent

      public AbstractSeriesItemEvent(Series series, Number value)
      Constructs the event with a value (without the series item).
      Parameters:
      series - Series.
      value - Value.
    • AbstractSeriesItemEvent

      public AbstractSeriesItemEvent(Series series, DataSeriesItem item)
      Constructs the event with a series item (without the value).
      Parameters:
      series - Series.
      item - Series item..
  • Method Details

    • getItem

      public DataSeriesItem getItem()
      The item added. May be null if value != null.
      Returns:
      The item added.
    • getValue

      public Number getValue()
      The value added. May be null if item != null.
      Returns:
      The value added.