Class DoubleStringConverter

java.lang.Object
javafx.util.StringConverter<Double>
atlantafx.base.util.DoubleStringConverter

public class DoubleStringConverter extends javafx.util.StringConverter<Double>
Converts between user-edited strings and Double values.

Accepts an optional Runnable that resets the editor on NumberFormatException, or a TextField or Spinner that is preemptively monitored for invalid input during typing, and restricts valid input to a specified range when committed.

This implementation shows up to two decimal digits, but only if a fractional part exists. The default implementation always shows one decimal digit which hinders typing.

Author:
Christoph Nahr