public final class DatasetSelectionEvent extends AbstractEvent<DatasetSelectionEventHandler>
GwtEvent.Type<H>
Modifier and Type | Field and Description |
---|---|
static GwtEvent.Type<DatasetSelectionEventHandler> |
TYPE
Event type
|
Constructor and Description |
---|
DatasetSelectionEvent(NativeEvent nativeEvent,
DatasetItem item)
Creates the event with dataset metadata item related to the click
|
DatasetSelectionEvent(NativeEvent nativeEvent,
IsChart chart,
DatasetItem item)
Creates the event with dataset metadata item related to the click and the chart instance
|
Modifier and Type | Method and Description |
---|---|
protected void |
dispatch(DatasetSelectionEventHandler handler) |
GwtEvent.Type<DatasetSelectionEventHandler> |
getAssociatedType() |
IsChart |
getChart()
Returns the chart instance, stored in the event as source.
|
DatasetItem |
getItem()
Returns the item with dataset metadata related to the click
|
getNativeEvent
assertLive, getSource, isLive, kill, revive
setSource, toDebugString, toString
public static final GwtEvent.Type<DatasetSelectionEventHandler> TYPE
public DatasetSelectionEvent(NativeEvent nativeEvent, DatasetItem item)
nativeEvent
- native event of this custom eventitem
- dataset metadata item related to the clickpublic DatasetSelectionEvent(NativeEvent nativeEvent, IsChart chart, DatasetItem item)
nativeEvent
- native event of this custom eventchart
- chart instanceitem
- dataset metadata item related to the clickpublic DatasetItem getItem()
public IsChart getChart()
AbstractEvent
getChart
in class AbstractEvent<DatasetSelectionEventHandler>
public GwtEvent.Type<DatasetSelectionEventHandler> getAssociatedType()
getAssociatedType
in class GwtEvent<DatasetSelectionEventHandler>
protected void dispatch(DatasetSelectionEventHandler handler)
dispatch
in class GwtEvent<DatasetSelectionEventHandler>