xworker.javafx.control.Spinner.dml Maven / Gradle / Ivy
A single line text field that lets the user select a number or an object value from an ordered sequence. Spinners typically provide a pair of tiny arrow buttons for stepping through the elements of the sequence. The keyboard up/down arrow keys also cycle through the elements. The user may also be allowed to type a (legal) value directly into the spinner. Although combo boxes provide similar functionality, spinners are sometimes preferred because they don't require a drop down list that can obscure important data, and also because they allow for features such as wrapping and simpler specification of 'infinite' data models (the SpinnerValueFactory, rather than using a ObservableList data model like many other JavaFX UI controls.
]]>
The editable property is used to specify whether user input is able to be typed into the Spinner editor.
]]>
The value factory is the model behind the JavaFX Spinner control - without a value factory installed a Spinner is unusable.
]]>