Class SpinnerValueFactory<T>

    • Constructor Detail

      • SpinnerValueFactory

        public SpinnerValueFactory​()
    • Method Detail

      • decrement

        public abstract void decrement​(int steps)
        Attempts to decrement the value by the given number of steps.
        Parameters:
        steps - The number of decrements that should be performed on the value.
      • increment

        public abstract void increment​(int steps)
        Attempts to omcrement the value by the given number of steps.
        Parameters:
        steps - The number of increments that should be performed on the value.
      • getValue

        public final T getValue​()
        Gets the value of the property value.
        Property description:
        Represents the current value of the SpinnerValueFactory, or null if no value has been set.
      • setValue

        public final void setValue​(T newValue)
        Sets the value of the property value.
        Property description:
        Represents the current value of the SpinnerValueFactory, or null if no value has been set.
      • valueProperty

        public final ObjectProperty<T> valueProperty​()
        Represents the current value of the SpinnerValueFactory, or null if no value has been set.
        See Also:
        getValue(), setValue(T)
      • getConverter

        public final StringConverter<T> getConverter​()
        Gets the value of the property converter.
        Property description:
        Converts the user-typed input (when the Spinner is editable) to an object of type T, such that the input may be retrieved via the value property.
      • setConverter

        public final void setConverter​(StringConverter<T> newValue)
        Sets the value of the property converter.
        Property description:
        Converts the user-typed input (when the Spinner is editable) to an object of type T, such that the input may be retrieved via the value property.
      • setWrapAround

        public final void setWrapAround​(boolean value)
        Sets the value of the property wrapAround.
        Property description:
        The wrapAround property is used to specify whether the value factory should be circular. For example, should an integer-based value model increment from the maximum value back to the minimum value (and vice versa).
      • isWrapAround

        public final boolean isWrapAround​()
        Gets the value of the property wrapAround.
        Property description:
        The wrapAround property is used to specify whether the value factory should be circular. For example, should an integer-based value model increment from the maximum value back to the minimum value (and vice versa).
      • wrapAroundProperty

        public final BooleanProperty wrapAroundProperty​()
        The wrapAround property is used to specify whether the value factory should be circular. For example, should an integer-based value model increment from the maximum value back to the minimum value (and vice versa).
        See Also:
        isWrapAround(), setWrapAround(boolean)