Hey,
I'm sorry but that way too much code to read through for me. So I can only give 
you some general advices.

> But I've found two problem i guess. It seems that the regexp expression is
> checked only on the input and not on the content in the TextField. I don't
> know if it is suppose to be like this or not.
You can always check the API documentation of the source code of the widget. 
Most of the time, its easy to read.

> Another fact is that there's a strange error. With the NumberFormat class if
> i try to put the update formatted content in the TextField sometimes it
> doesn't work.
> 
> I'm checking the "input" event. So when the input change i update the value
> property of the TextField like this:
> 
> this.formatter = new qx.util.format.NumberFormat("it");
> 
> var parsed = this.formatter.parse(data.getData());
> this.setValue(this.formatter.format(parsed));
> 
> If the number on the field is without dots, like this: 100
> If i press another key (like a zero for example) i get the correct answer:
> 1.000
> But now if i add another number i got this: 10000 instead of 10.000
> Now if i press another number i got this: 100.000
> 
> It seems that when a dot is in the content the format is not applied.
Did you try to use parseFloat instead? Maybe thats going to work...

Regards,
Martin
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the 
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to