/[Apache-SVN]
ViewVC logotype

Revision 1444260


Jump to revision: Previous Next
Author: rwhitcomb
Date: Fri Feb 8 22:17:50 2013 UTC (11 years, 2 months ago)
Changed paths: 3
Log Message:
PIVOT-892: Floating-point validators were not recognizing scientific
notation as valid input.

From a lot of online searching, and reading through the Java code, it
appears that scientific notation is only enabled in NumberFormat by
applying a pattern (i.e., there is no factory method that returns
a suitable NumberFormat).  And even then, exponents are only recognized
if the capital E is used (not lower-case 'e').  So, adjust for that in
both the default and locale-specific cases.

Updated a bit of documentation in the FormattedValidator class to make
things more clear.


Changed paths

Path Details
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/validation/DoubleValidator.java modified , text changed
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/validation/FloatValidator.java modified , text changed
Directorypivot/trunk/wtk/src/org/apache/pivot/wtk/validation/FormattedValidator.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26