GWT-Eureka available

250 views
Skip to first unread message

ctasada

unread,
Apr 10, 2012, 7:02:47 AM4/10/12
to google-we...@googlegroups.com
Hi everyone,

I just published the first version of GWT-Eureka. This is a new library for GWT widgets that are not big enough to fit anywhere else.

Right now you can find the next components:

* TimePicker: As the name says, a time picker, where you can type hours and minutes
* iOSButton: A button with support for badges, like in iOS
* ExtendedDatePicker: An extended DatePicker, where you can choose  the valid start/end dates


This is just a first release candidate. I'll keep working to improve it and make it production ready, but I really look forward for your comments and suggestions

Regards,
Carlos.

jhulford

unread,
Apr 10, 2012, 9:48:54 AM4/10/12
to google-we...@googlegroups.com
First, the widgets look fantastic.  Great job there.

My issue would be w/ keying time into the time pickers.  It's a little wonky, in that, you can't click into the textfield and just key "17:45".  You have to make sure to click the cursor after the hour, then type 17 and the click the mouse again to move it to the end of the minutes and key your minutes.  It's a bit cumbersome and somewhat counterintuitive.  I'm also not really a fan of input widgets that modify your text as you're typing.  Go ahead and change it after the widget looses focus, but modifying as I'm typing has a jaring effect on me.

One suggestion, allow using the mouse wheel to roll the hour / minute values up or down.  Along the lines of this: http://css-tricks.com/mousewheel-inputs/

Carlos Tasada

unread,
Apr 10, 2012, 4:34:13 PM4/10/12
to google-we...@googlegroups.com
Thanks for your comments.

The problem typing the hours/minutes has been hunting me for sometime, but I simply cannot find a better way to do it. An alternative would be to allow to type anything and then fix it when the widget loses focus, but I'm not really happy about it either. Any behavior suggestion is welcome.

Regarding the mouse-wheel idea, I love it. I'll take a look and implement it for the next version.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/USe98Gn2-h8J.

To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Jens

unread,
Apr 10, 2012, 6:15:20 PM4/10/12
to google-we...@googlegroups.com
Looks nice, but:

1.) when I click into any of both text boxes you should preselect all its contents (like its done when focusing the textbox using TAB) so I can start typing a new hour / minute. I don't want to select it myself using the mouse or hit backspace 2 times before I can change hour / minute if its not "00".
2.) it would be nice if the focus switches from hour to minute automatically if I have typed two digits into the hour box.
3.) The PM/AM behavior seems strange. 15:00 AM doesn't make sense. If AM/PM is visible, hour should only allowed to be 0-12.
4.) What if the time value being shown is optional? I can't delete all the contents to get a "null" time (thats why I prefer a single box for TimeBox. I don't want that hardcoded ":" between empty fields and also deleting a time is easier: CTRL + A => DEL in a single box).

I like the name. Eureka is a funny tv series! :)

-- J.

jhulford

unread,
Apr 11, 2012, 10:32:12 AM4/11/12
to google-we...@googlegroups.com
The way I do it in my date/time textbox (which is more like Jens' suggestion, one textbox for date and time) it to just allow the user to type any numeric values in there and I evaluate every keydown and examine the context which the number is being entered.  ie. does entering a 3 after the 9 in 9:30 make sense?  No.  Disallow.  etc.  Then evaluate the full string on focus lost if you're implementing value change handlers. It does lead to a bit of validation code and some pains handling highlighted text and key value differences between browsers, but, in my mind, it's a better user experience.

Really though, it's your widgets and your call how you want them to function.


On Tuesday, April 10, 2012 4:34:13 PM UTC-4, ctasada wrote:
Thanks for your comments.

The problem typing the hours/minutes has been hunting me for sometime, but I simply cannot find a better way to do it. An alternative would be to allow to type anything and then fix it when the widget loses focus, but I'm not really happy about it either. Any behavior suggestion is welcome.

Regarding the mouse-wheel idea, I love it. I'll take a look and implement it for the next version.

Reply all
Reply to author
Forward
0 new messages