Class SeriesCheckboxClickEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.flow.component.ComponentEvent<Chart>
-
- com.vaadin.flow.component.charts.events.SeriesCheckboxClickEvent
-
- All Implemented Interfaces:
HasSeries
,Serializable
@DomEvent("series-checkbox-click") public class SeriesCheckboxClickEvent extends ComponentEvent<Chart> implements HasSeries
SeriesCheckboxClickEvent triggered when a checkbox in a legend is clicked- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description SeriesCheckboxClickEvent(Chart source, boolean fromClient, boolean isChecked, int seriesIndex)
Constructs a SeriesCheckboxClickEvent
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getSeriesItemIndex()
Returns the index of the seriesboolean
isChecked()
Checks if the checkbox is checked-
Methods inherited from class com.vaadin.flow.component.ComponentEvent
getSource, isFromClient, unregisterListener
-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
SeriesCheckboxClickEvent
public SeriesCheckboxClickEvent(Chart source, boolean fromClient, @EventData("event.detail.originalEvent.checked") boolean isChecked, @EventData("event.detail.originalEvent.item.index") int seriesIndex)
Constructs a SeriesCheckboxClickEvent- Parameters:
source
-fromClient
-isChecked
-seriesIndex
-
-
-
Method Detail
-
isChecked
public boolean isChecked()
Checks if the checkbox is checked- Returns:
-
getSeriesItemIndex
public int getSeriesItemIndex()
Description copied from interface:HasSeries
Returns the index of the series- Specified by:
getSeriesItemIndex
in interfaceHasSeries
- Returns:
-
-