public final class LegendClickEvent extends AbstractEvent<H> implements IsLegendEvent
GwtEvent.Type<H>
Modifier and Type | Field and Description |
---|---|
static GwtEvent.Type<LegendClickEventHandler> |
TYPE
Event type
|
Constructor and Description |
---|
LegendClickEvent(NativeEvent nativeEvent,
Chart functionContext,
LegendItem item)
Creates the event with legend item related to the click
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(LegendClickEventHandler handler) |
GwtEvent.Type<LegendClickEventHandler> |
getAssociatedType() |
Chart |
getContext()
Returns the java script function context of CHART.JS events.
|
LegendItem |
getItem()
Returns the legend item 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<LegendClickEventHandler> TYPE
public LegendClickEvent(NativeEvent nativeEvent, Chart functionContext, LegendItem item)
nativeEvent
- native event of this custom eventfunctionContext
- function context provided by CHART.JSitem
- legend item related to the clickpublic LegendItem getItem()
getItem
in interface IsLegendEvent
public GwtEvent.Type<LegendClickEventHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<LegendClickEventHandler>
protected void dispatch(LegendClickEventHandler handler)
dispatch
in class GwtEvent<LegendClickEventHandler>
public final Chart getContext()
public final Key getKey()