On Monday, July 15, 2013 7:29:35 PM UTC+2, Magnus wrote:
>
> Hi,
>
> isn't there a GWT widget for entering numbers, with two small arrows at 
> the right side to increment/decrement its value?
>

There's no widget in GWT that take advantage of HTML5 input types such as 
<input type=number> (which will give you a "spinner" in most non-IE 
browsers, with a fallback to a simple textbox otherwise)
It's however easy to make one:
  IntegerBox in = new IntegerBox();
  in.getElement().setPropertyString("type", "number");
(or extend IntegerBox and do the setPropertyString in the constructor)
You can also add a KeyPressHandler and/or BlurHandler to cleanup and/or 
validate the input.
 

> I need a widget for entering time values, separated as days, hours, 
> minutes and seconds. Is there something more comfortable than just 4 simple 
> text boxes?
>

>From a user point of view, the most comfortable is to be able to type "1d 
2h 3min 4s" or "5 days 6 hours 7 mins 4 secs" or variants along this line.
I'm pretty sure something exists already (either in JS or in GWT) but I 
can't find anything (maybe it's just not opensource; see 
http://www.fogcreek.com/fogbugz/docs/70/topics/schedules/Enteringestimates.html
 and http://help.letsfreckle.com/logging-time/how-to-log-time for examples 
of closed source implementations).

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


Reply via email to