Timer / Progress bar on a form to show countdown.

1,517 views
Skip to first unread message

Vish

unread,
Feb 14, 2009, 12:13:47 PM2/14/09
to Google Web Toolkit
Hi All,
I'm trying to show a countdown timer on a form which displays the time
left for a discussion on some topic mentioned on that form.
I'm not able to decide or figure out the best way to do it, also I
couldn't find any earlier post discussing this.
If someone can help me suggesting this it will be really helpful and I
would be very thankful.
Regard
Vish.

jossey

unread,
Feb 15, 2009, 4:50:52 PM2/15/09
to Google Web Toolkit
Will the Timer in GWT help?

Vishesh

unread,
Feb 16, 2009, 11:23:32 PM2/16/09
to Google-We...@googlegroups.com
Thanks for replying.
But is there a way to show the timer on the rootpanel or other screen?
If there is I cant seem to find it anywhere.
--
Vishesh Sahu

alex.d

unread,
Feb 17, 2009, 3:30:40 AM2/17/09
to Google Web Toolkit
Timer is just a class that helps you to do smth. periodically(see docs
for an example). You'll have to use it to update some label with your
time value.

Litty Preeth

unread,
Feb 17, 2009, 4:06:13 AM2/17/09
to Google-We...@googlegroups.com
Well using the Timer you can periodically request the server for the time remaining and update the count down Label. But this will require may be a server call in every min or few seconds. But I think the better approach is to get the remaining time at the first load and using a Timer to deduct a sec each time and update the label with new remaining time.

- Litty

Vishesh

unread,
Feb 17, 2009, 3:08:38 PM2/17/09
to Google-We...@googlegroups.com
What timer function do you think will return the timer's current value
so that I can read and display on a lable?
I'm clueless :(
--
Vishesh Sahu

satya

unread,
Feb 17, 2009, 8:39:14 PM2/17/09
to Google Web Toolkit
GWT-Ext has timer functions. Will that help you?

here is an demo link which has the source code also.

http://www.gwt-ext.com/demo/#messageBox

On Feb 17, 2:08 pm, Vishesh <visheshs...@gmail.com> wrote:
> What timer function do you think will return the timer's current value
> so that I can read and display on a lable?
> I'm clueless :(
>
> On 2/17/09, Litty Preeth <preeth.h...@gmail.com> wrote:
>
>
>
> > Well using the Timer you can periodically request the server for the time
> > remaining and update the count down Label. But this will require may be a
> > server call in every min or few seconds. But I think the better approach is
> > to get the remaining time at the first load and using a Timer to deduct a
> > sec each time and update the label with new remaining time.
>
> > - Litty
>
> > On Tue, Feb 17, 2009 at 2:00 PM, alex.d
> > <alex.dukhov...@googlemail.com>wrote:

Vish

unread,
Feb 18, 2009, 8:45:08 PM2/18/09
to Google Web Toolkit
This is what I was actually looking for:
http://code.google.com/p/google-web-toolkit-incubator/wiki/ProgressBar
Thanks for everyone for your responses and help..
> > >> > >> I'm trying to show acountdowntimer on a form which displays the
Reply all
Reply to author
Forward
0 new messages