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 = [email protected]::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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.