public final class ChartClickEvent extends AbstractEvent<H> implements IsChartEvent
GwtEvent.Type<H>| Modifier and Type | Field and Description |
|---|---|
static GwtEvent.Type<ChartClickEventHandler> |
TYPE
Event type
|
| Constructor and Description |
|---|
ChartClickEvent(NativeEvent nativeEvent,
Chart functionContext,
List<DatasetItem> items)
Creates the event with a list of items with dataset metadata related to the click
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
dispatch(ChartClickEventHandler handler) |
GwtEvent.Type<ChartClickEventHandler> |
getAssociatedType() |
Chart |
getContext()
Returns the java script function context of CHART.JS events.
|
List<DatasetItem> |
getItems()
Returns a list of items with dataset metadata related to the click
|
Key |
getKey()
Returns the options key where default function is stored.
|
getChart, getNativeEventassertLive, getSource, isLive, kill, revivesetSource, toDebugString, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChart, getContext, getKey, getNativeEventpublic static final GwtEvent.Type<ChartClickEventHandler> TYPE
public ChartClickEvent(NativeEvent nativeEvent, Chart functionContext, List<DatasetItem> items)
nativeEvent - native event of this custom eventfunctionContext - function context provided by CHART.JSitems - a list of items with dataset metadata related to the clickpublic List<DatasetItem> getItems()
getItems in interface IsChartEventpublic GwtEvent.Type<ChartClickEventHandler> getAssociatedType()
getAssociatedType in class GwtEvent<ChartClickEventHandler>protected void dispatch(ChartClickEventHandler handler)
dispatch in class GwtEvent<ChartClickEventHandler>public final Chart getContext()
public final Key getKey()