Hi,

I want to define a hover handler in Java and reference it from JavaScript 
in order to register it in a JS library:

But the reference causes an error:

public class MyClass
{
public native void myHandler (JavaScriptObject e) // don't know if 
JavaScriptObject is the right type
 /*-{
    var c = e.target.className;
    console.log (c);
 }-*/;

 private native void startHover (String stl_w)
 /*-{
  var f = this.@mylib.myWidget::myhandler; // produces syntax error

  $wnd.myLib.hover (f); // register handler in the external library
 }-*/;
}


What's the problem here?

Thanks
Magnus

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to