gwt scheduler example

2,171 views
Skip to first unread message

Ali

unread,
Dec 29, 2010, 4:44:20 PM12/29/10
to Google Web Toolkit
Hi there,
Where can I get a simple example of gwt Scheduler. Can any one write a
simple sheduler task running every 5 seconds for example.

thank you.

Y2i

unread,
Dec 29, 2010, 5:04:08 PM12/29/10
to Google Web Toolkit
GWT stock sample app has an example that uses
com.google.gwt.user.client.Timer:

http://code.google.com/webtoolkit/doc/latest/tutorial/codeclient.html#refreshPrice

Is this something that you are looking for?
Message has been deleted

Nirmal Patel

unread,
Dec 30, 2010, 1:19:05 AM12/30/10
to google-we...@googlegroups.com
private final class MyRepeatedCommand implements RepeatingCommand {
    public void execute() {....}
}

Scheduler.get().scheduleFixedPeriod(new MyRepeatedCommand(), delayMs)

Ali

unread,
Dec 30, 2010, 9:44:36 AM12/30/10
to Google Web Toolkit
Hi there,
Can anyone please let me know where I can find a simple example of
using gwt class Scheduler.
for example using this scheduler to repeat a task every 5 seconds.
Talking about com.google.gwt.core.client.Scheduler.

Thank you.

Ali

unread,
Dec 30, 2010, 9:53:33 AM12/30/10
to Google Web Toolkit
thanks very much.

Ali

unread,
Dec 30, 2010, 10:06:45 AM12/30/10
to Google Web Toolkit
Could you please also let me know how to stop it scheduler as well.
Thank you.

On Dec 30, 6:19 am, Nirmal Patel <nirmaljpa...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages