Module javafx.controls
Package javafx.scene.control
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.
 Note that the default converter is implemented
 as an IntegerStringConverter instance.
- Since:
- JavaFX 8u40
- 
Property SummaryProperties Type Property Description IntegerPropertyamountToStepBySets the amount to increment or decrement by, per step.IntegerPropertymaxSets the maximum allowable value for this value factoryIntegerPropertyminSets the minimum allowable value for this value factoryProperties declared in class javafx.scene.control.SpinnerValueFactoryconverter, value, wrapAround
- 
Nested Class SummaryNested classes/interfaces declared in class javafx.scene.control.SpinnerValueFactorySpinnerValueFactory.DoubleSpinnerValueFactory, SpinnerValueFactory.IntegerSpinnerValueFactory, SpinnerValueFactory.ListSpinnerValueFactory<T>
- 
Constructor SummaryConstructors Constructor Description IntegerSpinnerValueFactory(int min, int max)Constructs a new IntegerSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.IntegerSpinnerValueFactory(int min, int max, int initialValue)Constructs a new IntegerSpinnerValueFactory with a defaultamountToStepByof one.IntegerSpinnerValueFactory(int min, int max, int initialValue, int amountToStepBy)Constructs a new IntegerSpinnerValueFactory.
- 
Method SummaryModifier and Type Method Description IntegerPropertyamountToStepByProperty()Sets the amount to increment or decrement by, per step.intgetAmountToStepBy()Gets the value of the property amountToStepBy.intgetMax()Gets the value of the property max.intgetMin()Gets the value of the property min.IntegerPropertymaxProperty()Sets the maximum allowable value for this value factoryIntegerPropertyminProperty()Sets the minimum allowable value for this value factoryvoidsetAmountToStepBy(int value)Sets the value of the property amountToStepBy.voidsetMax(int value)Sets the value of the property max.voidsetMin(int value)Sets the value of the property min.Methods declared in class javafx.scene.control.SpinnerValueFactoryconverterProperty, decrement, getConverter, getValue, increment, isWrapAround, setConverter, setValue, setWrapAround, valueProperty, wrapAroundProperty
- 
Property Details- 
minSets the minimum allowable value for this value factory- See Also:
- getMin(),- setMin(int)
 
- 
maxSets the maximum allowable value for this value factory- See Also:
- getMax(),- setMax(int)
 
- 
amountToStepBySets the amount to increment or decrement by, per step.- See Also:
- getAmountToStepBy(),- setAmountToStepBy(int)
 
 
- 
- 
Constructor Details- 
IntegerSpinnerValueFactorypublic IntegerSpinnerValueFactory(int min, int max)Constructs a new IntegerSpinnerValueFactory that sets the initial value to be equal to the min value, and a defaultamountToStepByof one.- Parameters:
- min- The minimum allowed integer value for the Spinner.
- max- The maximum allowed integer value for the Spinner.
 
- 
IntegerSpinnerValueFactorypublic IntegerSpinnerValueFactory(int min, int max, int initialValue)Constructs a new IntegerSpinnerValueFactory with a defaultamountToStepByof 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.
 
- 
IntegerSpinnerValueFactorypublic 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 Details- 
setMinpublic final void setMin(int value)Sets the value of the property min.- Property description:
- Sets the minimum allowable value for this value factory
 
- 
getMinpublic final int getMin()Gets the value of the property min.- Property description:
- Sets the minimum allowable value for this value factory
 
- 
minPropertySets the minimum allowable value for this value factory- See Also:
- getMin(),- setMin(int)
 
- 
setMaxpublic final void setMax(int value)Sets the value of the property max.- Property description:
- Sets the maximum allowable value for this value factory
 
- 
getMaxpublic final int getMax()Gets the value of the property max.- Property description:
- Sets the maximum allowable value for this value factory
 
- 
maxPropertySets the maximum allowable value for this value factory- See Also:
- getMax(),- setMax(int)
 
- 
setAmountToStepBypublic final void setAmountToStepBy(int value)Sets the value of the property amountToStepBy.- Property description:
- Sets the amount to increment or decrement by, per step.
 
- 
getAmountToStepBypublic final int getAmountToStepBy()Gets the value of the property amountToStepBy.- Property description:
- Sets the amount to increment or decrement by, per step.
 
- 
amountToStepByPropertySets the amount to increment or decrement by, per step.- See Also:
- getAmountToStepBy(),- setAmountToStepBy(int)
 
 
-