org.moxieapps.gwt.highcharts.client.events
Interface PointSelectEventHandler


public interface PointSelectEventHandler

An interface that can be used as a callback handler when select events are fired on the individual points in a series. General usage is as follows:

 chart.setSeriesPlotOptions(new SeriesPlotOptions()
    .setPointSelectEventHandler(new PointSelectEventHandler() {
       public boolean onSelect(PointSelectEvent selectEvent) {
          Window.alert("Point selectd: " + selectEvent.getXAsLong() + ", " + selectEvent.getYAsLong());
          return true;
       }
    )
 });
 
See the documentation on the PointSelectEvent class for more details on the data available when a point select event occurs.

Since:
1.1.0
Author:
squinn@moxiegroup.com (Shawn Quinn)

Method Summary
 boolean onSelect(PointSelectEvent pointSelectEvent)
          This method is fired whenever a select event occurs on an individual point.
 

Method Detail

onSelect

boolean onSelect(PointSelectEvent pointSelectEvent)
This method is fired whenever a select event occurs on an individual point. See the PointSelectEvent class for more details on the data available when this event is fired.

Return false to prevent the selection from occurring.

Parameters:
pointSelectEvent - The details of the event that occurred.
Returns:
The response to send back to the event handler function. Return false to prevent the action.


Copyright © 2015. All Rights Reserved.