Hi all,

I'm developing a module using Google Web Toolkit Timer. In my code, I
have to override a method for handling browser event (pass an event as
argument). In this method, I use Timer to count down the time to delay
sending the event to server. The problem is that:

- If I use the event argument of overridden method in method "run()"
of timer, It works fine in Firefox but does not work in IE, Chrome. I
tried to debug and get the error: "Member not found"

- If I does not use the event argument, It works fine with all
browsers.

My code like following:

@override
public void onBrowserEvent(final Event event)
    timer = new Timer {

                        @Override
                        public void run() {
                            delayTime -= 1000;
                            if (delayTime <= 0) {

                                SuperClass.this.someMethod(event); //
This line cause the error

                                delayTime = 2000;
                                cancel();
                            }
                        }
                    };
    timer.scheduleRepeating(1000);
}

Anybody have ever faced the same problem?

Please help!

Kind Regards,
Khoi

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to