Class SpinnerValueFactory.IntegerSpinnerValueFactory

    • Constructor Detail

      • IntegerSpinnerValueFactory

        public IntegerSpinnerValueFactory​(int min,
                                          int max)
        Constructs a new IntegerSpinnerValueFactory that sets the initial value to be equal to the min value, and a default amountToStepBy of one.
        Parameters:
        min - The minimum allowed integer value for the Spinner.
        max - The maximum allowed integer value for the Spinner.
      • IntegerSpinnerValueFactory

        public IntegerSpinnerValueFactory​(int min,
                                          int max,
                                          int initialValue)
        Constructs a new IntegerSpinnerValueFactory with a default amountToStepBy of one.
        Parameters:
        min - The minimum allowed integer value for the Spinner.
        max - The maximum allowed integer value for the Spinner.
        initialValue - The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.
      • IntegerSpinnerValueFactory

        public IntegerSpinnerValueFactory​(int min,
                                          int max,
                                          int initialValue,
                                          int amountToStepBy)
        Constructs a new IntegerSpinnerValueFactory.
        Parameters:
        min - The minimum allowed integer value for the Spinner.
        max - The maximum allowed integer value for the Spinner.
        initialValue - The value of the Spinner when first instantiated, must be within the bounds of the min and max arguments, or else the min value will be used.
        amountToStepBy - The amount to increment or decrement by, per step.
    • Method Detail

      • setMin

        public final void setMin​(int value)
        Sets the value of the property min.
        Property description:
        * Properties * *
      • getMin

        public final int getMin()
        Gets the value of the property min.
        Property description:
        * Properties * *
      • minProperty

        public final IntegerProperty minProperty()
        Sets the minimum allowable value for this value factory
        Returns:
        the minimum allowable value for this value factory
      • setMax

        public final void setMax​(int value)
        Sets the value of the property max.
        Property description:
        Sets the maximum allowable value for this value factory
      • getMax

        public final int getMax()
        Gets the value of the property max.
        Property description:
        Sets the maximum allowable value for this value factory
      • setAmountToStepBy

        public final void setAmountToStepBy​(int value)
        Sets the value of the property amountToStepBy.
        Property description:
        Sets the amount to increment or decrement by, per step.
      • getAmountToStepBy

        public final int getAmountToStepBy()
        Gets the value of the property amountToStepBy.
        Property description:
        Sets the amount to increment or decrement by, per step.