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, getNativeEvent
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getChart, getContext, getKey, getNativeEvent
public 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 IsChartEvent
public 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()