Module MaterialFX
Class NumberSpinnerModel<T extends Number>
java.lang.Object
io.github.palexdev.materialfx.controls.models.spinner.AbstractSpinnerModel<T>
io.github.palexdev.materialfx.controls.models.spinner.NumberSpinnerModel<T>
- All Implemented Interfaces:
SpinnerModel<T>
- Direct Known Subclasses:
DoubleSpinnerModel,IntegerSpinnerModel
Base class to easily implement spinner models for numeric values, extends
AbstractSpinnerModel.
NumberSpinnerModel adds the converterProperty() (since we know the kind of data the model will deal with),
and three new properties, minProperty(), maxProperty(), incrementProperty().-
Property Summary
PropertiesTypePropertyDescriptionSpecifies theStringConverterused to convert the spinner value to a String.Specifies the increment/decrement value to add/subtract from the current value when callingSpinnerModel.next()orSpinnerModel.previous().Specifies the maximum number reachable by the spinner.Specifies the minimum number reachable by the spinner.Properties inherited from class io.github.palexdev.materialfx.controls.models.spinner.AbstractSpinnerModel
defaultValue, value -
Field Summary
Fields inherited from class io.github.palexdev.materialfx.controls.models.spinner.AbstractSpinnerModel
defaultValue, value, wrapAround -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies theStringConverterused to convert the spinner value to a String.Gets the value of the property converter.Gets the value of the property increment.getMax()Gets the value of the property max.getMin()Gets the value of the property min.Specifies the increment/decrement value to add/subtract from the current value when callingSpinnerModel.next()orSpinnerModel.previous().Specifies the maximum number reachable by the spinner.Specifies the minimum number reachable by the spinner.voidsetConverter(StringConverter<T> converter) Sets the value of the property converter.voidsetIncrement(T increment) Sets the value of the property increment.voidSets the value of the property max.voidSets the value of the property min.Methods inherited from class io.github.palexdev.materialfx.controls.models.spinner.AbstractSpinnerModel
defaultValueProperty, getDefaultValue, getValue, isWrapAround, reset, setDefaultValue, setValue, setWrapAround, valuePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.palexdev.materialfx.controls.models.spinner.SpinnerModel
next, previous
-
Property Details
-
converter
- See Also:
-
min
Specifies the minimum number reachable by the spinner. -
max
Specifies the maximum number reachable by the spinner. -
increment
Specifies the increment/decrement value to add/subtract from the current value when callingSpinnerModel.next()orSpinnerModel.previous().- See Also:
-
-
Constructor Details
-
NumberSpinnerModel
public NumberSpinnerModel()
-
-
Method Details
-
getConverter
Gets the value of the property converter.- Property description:
-
converterProperty
Description copied from interface:SpinnerModelSpecifies theStringConverterused to convert the spinner value to a String.- See Also:
-
setConverter
Sets the value of the property converter.- Property description:
-
getMin
Gets the value of the property min.- Property description:
- Specifies the minimum number reachable by the spinner.
-
minProperty
Specifies the minimum number reachable by the spinner. -
setMin
Sets the value of the property min.- Property description:
- Specifies the minimum number reachable by the spinner.
-
getMax
Gets the value of the property max.- Property description:
- Specifies the maximum number reachable by the spinner.
-
maxProperty
Specifies the maximum number reachable by the spinner. -
setMax
Sets the value of the property max.- Property description:
- Specifies the maximum number reachable by the spinner.
-
getIncrement
Gets the value of the property increment.- Property description:
- Specifies the increment/decrement value to add/subtract from
the current value when calling
SpinnerModel.next()orSpinnerModel.previous().
-
incrementProperty
Specifies the increment/decrement value to add/subtract from the current value when callingSpinnerModel.next()orSpinnerModel.previous().- See Also:
-
setIncrement
Sets the value of the property increment.- Property description:
- Specifies the increment/decrement value to add/subtract from
the current value when calling
SpinnerModel.next()orSpinnerModel.previous().
-