DecimalField
Restrict user from entering anything other than number
Extension of the Vaadin TextField to restrict user from entering anything other than number. Fractional numbers are not supported. Maximum 18 digits are allowed in field and does not support negative value.
Note : You will need to compile the widget sets to see the effect of this addon.
Sample code
DecimalField decimalField = new DecimalField(); decimalField.setNumber(25); Notification.show(decimalField.getNumber());
Links
Compatibility
1.1.0 | 1.1.1 | |
---|---|---|
(24.4) | ||
(24.3) | ||
(24.2) | ||
(24.1) | ||
(24) | ||
(23) | ||
(22) | ||
(21) | ||
(20) | ||
(19) | ||
(18) | ||
(17) | ||
(16) | ||
(15) | ||
(14) | ||
(13) | ||
(12) | ||
(11) | ||
(10) | ||
(8.21) | ||
(8.20) | ||
(8.19) | ||
(8.18) | ||
(8.17) | ||
(8.16) | ||
(8.15) | ||
(8.14) | ||
(8.13) | ||
(8.12) | ||
(8.11) | ||
(8.10) | ||
(8.9) | ||
(8.8) | ||
(8.7) | ||
(8.6) | ||
(8.5) | ||
(8.4) | ||
(8.3) | ||
(8.2) | ||
(8.1) | ||
(8.0) | ||
7.3-7.7 | Y | Y |
-7.6 | Y | Y |
-7.5 | Y | Y |
-7.4 | Y | Y |
-7.3 | Y | Y |
(7.2) | ||
(7.1) | ||
(7.0) | ||
(6.8) | ||
(6.7) | ||
(6.6) | ||
(6.5) | ||
(6.4) | ||
(6.3) | ||
(6.2) | ||
(6.1) | ||
(6.0) |
Was this helpful? Need more help?
Leave a comment or a question below. You can also join
the chat on Discord or
ask questions on StackOverflow.
Version
- Add support for negative numbers
- Released
- 2017-05-20
- Maturity
- STABLE
- License
- Apache License 2.0
Compatibility
- Framework
- Vaadin 7.3+
- Browser
- Firefox
- Google Chrome
- Android Browser
- Internet Explorer
DecimalField - Vaadin Add-on Directory
Restrict user from entering anything other than numberExtension of the Vaadin TextField to restrict user from entering anything other than number. Fractional numbers are not supported. Maximum 18 digits are allowed in field and does not support negative value.
Note : You will need to compile the widget sets to see the effect of this addon.
Issue TrackerSource Code
DecimalField version 1.1.0
- Allow only numbers in field
- Revert change of decimal separator
- Fix bug of CTRL + A key press
DecimalField version 1.1.1
- Add support for negative numbers