public final class ChartClickEvent extends AbstractEvent
| Constructor and Description |
|---|
ChartClickEvent(ChartEventContext eventContext,
List<DatasetReference> items)
Creates the event with a list of items with dataset references related to the click
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(EventHandler handler)
Implemented by subclasses to dispatch event on the handler.
|
IsChart |
getChart()
Returns the chart instance, stored in the event as source.
|
ChartEventContext |
getContext()
Returns the java script function context of CHART.JS events.
|
List<DatasetReference> |
getItems()
Returns a list of items with dataset references related to the click.
|
Key |
getKey()
Returns the options key where default function is stored.
|
getNativeEvent, getTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic static final EventType TYPE
public ChartClickEvent(ChartEventContext eventContext, List<DatasetReference> items)
eventContext - event context generated by CHART.jsitems - a list of items with dataset references related to the clickprotected void dispatch(EventHandler handler)
Eventpublic final List<DatasetReference> getItems()
getItems in interface IsChartEventpublic final ChartEventContext getContext()
public final Key getKey()
public IsChart getChart()
getChart in class AbstractEvent