What I want is to call this code
public native void eventClickHandler( String id) /*-{
$wnd.jQuery('#' + id).bind('jqplotDataClick',function(ev, seriesIndex, pointIndex, data) {
[email protected]::onClick(Ljava/lang/String;Ljava/lang/String;)(seriesIndex, pointIndex);
});
}-*/;
Here the onClick method is a normal java method and I'm using GWT and JSNI interface for this. Thanks in advance!..
thisis somewhat risky, as it refers to the function owner. is the JSNI method a member of an overlay type? please enclose more context code, and some generated exceptions, if exist.