Spinner control - without a value factory installed a
Spinner is unusable. It is the role of the value factory to handle almost all
aspects of the Spinner, including:
value,Incrementing
and decrementing the
value, with one or more steps per call,Converting text input
from the user (via the Spinner editor,objects to user-readable strings
for display on screenSpinnerValueFactory classes for some common types are provided with JavaFX, including:
Spinner, SpinnerValueFactory.IntegerSpinnerValueFactory , SpinnerValueFactory.DoubleSpinnerValueFactory , SpinnerValueFactory.ListSpinnerValueFactory
| Modifier and Type | Class and Description |
|---|---|
| public static class | SpinnerValueFactory.
A |
| public static class | SpinnerValueFactory.
A |
| public static class | SpinnerValueFactory.
The type of the elements in the T>java..A |
| pack-priv static class | SpinnerValueFactory.
A |
| pack-priv static class | SpinnerValueFactory.
A |
| Modifier and Type | Field and Description |
|---|---|
| private ObjectProperty | |
| private ObjectProperty | value
Represents the current value of the SpinnerValueFactory, or null if no value has been set. |
| private BooleanProperty | wrapAround
Specifies whether this |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final ObjectProperty | |
| public abstract void | decrement(int
The number of decrements that should be performed on the value.
If the number is negative, the call is equivalent to calling
steps)increment(int) with the absolute value of steps.Attempts to decrement the |
| public final StringConverter | |
| public final T | |
| public abstract void | increment(int
The number of increments that should be performed on the value.
If the number is negative, the call is equivalent to calling
steps)decrement(int) with the absolute number of steps.Attempts to increment the |
| public final boolean | |
| public final void | |
| public final void | |
| public final void | |
| public final ObjectProperty | |
| public final BooleanProperty |