On 17 août, 16:31, CI-CUBE <e...@ci-cube.info> wrote:
> My workaround is to use static methods (1 for each Callback) in the
> base class that redirect the request to virtual members of a static
> member object. This introduces some overhead but works... anyway is
> there some advice how to use a true member method in an assignment to
> a JS callback?

> > > >        protected native void initializeCBs() /*-{
            var that = this;
            $wnd.x4ResizeAppCB = function() {
 
th...@com.egr.x4gpl.apps.saturn.client.application.resizecb()();
            };

> > > >        }-*/;

It's basically the same as what you described above, without the need
for Java statics.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to