public final class DatasetSelectionEvent extends AbstractEvent
Constructor and Description |
---|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
DatasetReference item)
Creates the event with dataset reference item related to the click
|
DatasetSelectionEvent(BaseNativeEvent nativeEvent,
IsChart chart,
DatasetReference item)
Creates the event with dataset reference item related to the click and the chart instance
|
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.
|
DatasetReference |
getItem()
Returns the item with dataset metadata related to the click
|
getNativeEvent, getType
public static final EventType TYPE
public DatasetSelectionEvent(BaseNativeEvent nativeEvent, DatasetReference item)
nativeEvent
- native event of this custom eventitem
- dataset reference item related to the clickpublic DatasetSelectionEvent(BaseNativeEvent nativeEvent, IsChart chart, DatasetReference item)
nativeEvent
- native event of this custom eventchart
- chart instanceitem
- dataset reference item related to the clickpublic DatasetReference getItem()
public IsChart getChart()
AbstractEvent
getChart
in class AbstractEvent
protected void dispatch(EventHandler handler)
Event