Gwt Time picker widget

2,564 views
Skip to first unread message

Kedar Vyawahare

unread,
Jun 19, 2013, 2:53:39 AM6/19/13
to google-we...@googlegroups.com

Hi,
I am looking for a widget in GWT that allows the user to choose a specific time. I am using the GWT Date Picker to choose the date but I am not able to find a suitable Time Picker. I have had a look at a couple of suggestions  that emulate the jQuery Time Picker as well as GWT Incubator Demo but none match my requirement. I am looking for a space-efficient widget maybe like a textbox that allows to enter suitable time values.
Thanks in advance

--

Thanks & regards ,

Kedar 

 

Honza Rames

unread,
Jun 19, 2013, 3:44:07 AM6/19/13
to google-we...@googlegroups.com
Hi,
I'm using subclass of DateBox that has the popup calendar disabled. You have to input the time manually but the DateBox will validate it for you. You can also instantiate it with a custom Format to make it return null rather than throwing an exception if the time is invalid.

Regards

Honza

Kedar Vyawahare

unread,
Jun 19, 2013, 9:44:27 AM6/19/13
to google-we...@googlegroups.com
I agree to the above approach. It would work fine. But is there a pre-defined widget to do the same? As in, specific to time choosing rather than actually typing it.


--
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 google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Andy

unread,
Jun 19, 2013, 4:03:42 PM6/19/13
to google-we...@googlegroups.com
Hi Kedar, We made a widget that sounds like what you need. It's called UTCTimeBox and you can get it from:


There's more info in this blog post:


Cheers,
Andy

Jonas

unread,
Jun 20, 2013, 3:50:42 AM6/20/13
to google-we...@googlegroups.com
This is great!

I really like the GroupedListBox and UTCTimeBox, which really should have been provided in GWT Core.
Any chance to see a publication to maven central for these widgets?

Andy

unread,
Jun 24, 2013, 1:42:39 PM6/24/13
to google-we...@googlegroups.com
Hi Jonas, I'm glad you like them. We're not Maven users, so I haven't bothered. That said, I'm happy to do it.

Do you have an example that you can point me to? My ant build is mostly based on the one used by an older version of GQuery combined with some old incubator build stuff. I assume building with Maven will make it easier to publish but I could just keep it an ant build with a separate publish.

Do GWT projects indicate a dependency on GWT or is that implied and ignored?

AutoSizingTextArea is currently dependent on gwtquery (for getComputedStyle using GQuery.$(e).css(name, true)). Should that be a separate artifact?

Cheers,
Andy
Reply all
Reply to author
Forward
0 new messages