Class SpinnerValueFactory.IntegerSpinnerValueFactory

java.lang.Object
javafx.scene.control.SpinnerValueFactory<Integer>
javafx.scene.control.SpinnerValueFactory.IntegerSpinnerValueFactory
Enclosing class:
SpinnerValueFactory<T>

public static class SpinnerValueFactory.IntegerSpinnerValueFactory extends SpinnerValueFactory<Integer>
A SpinnerValueFactory implementation designed to iterate through integer values.

If wrapAround is true, the IntegerSpinnerValueFactory will step from the minimum value to the maximum value (and vice versa). As a consequence of that, the number of steps required to wrap around to the same value is N+1, where N is the number of steps between min (inclusive) and max (inclusive). The new value after a step is val = (val + amountToStepBy) % (max - min + 1).

Note that the default converter is implemented as an IntegerStringConverter instance.

Since:
JavaFX 8u40