TextField which allows only number input

This addon is a modification of TextField, which accepts only number input and has new properties.

  1. Enable/disable negative values #setSigned. Default true.
  2. Enable/disable number grouping #setUseGrouping. Default false.
  3. Setting grouping separator #setGroupingSeparator. Default character dot character.
  4. Enable/disable decimal numbers #setDecimal. Default false.
  5. Setting decimal separator #setDecimalSeparator. Default value space character.

If you want to get converted value, you need to use binder and set custom converter by calling binderBuilder.forField(field) .withConverter(createStringToIntegerConverter())

For demo you could checkout and run demo app from here.

Install

Link to this version
ExperimentalReleased 11 July 2017Apache License 2.0
Framework Support
Vaadin 8.0+
Also supported:
Vaadin 7 (0.0.4)
Install with
Release notes - Version 0.0.5

Upgrade to Vaadin 8