JSpinnerRange

class JSpinnerRange(min: JSpinner, max: JSpinner, maxRange: Double?, name: String?)

A container for two JSpinners that indicate a range of values.

Parameters

min

the JSpinner that represents the minimum value

max

the JSpinner that represents the maximum value

maxRange

the maximum difference between min and max

name

the name to use in error messages

Constructors

JSpinnerRange
Link copied to clipboard
fun JSpinnerRange(min: JSpinner, max: JSpinner, maxRange: Double? = null, name: String? = null)
the JSpinner that represents the minimum value

Functions

validateValue
Link copied to clipboard
fun validateValue(): ValidationInfo?
Validates this range.

Properties

maxValue
Link copied to clipboard
val maxValue: Double
The current maximum value of the range.
minValue
Link copied to clipboard
val minValue: Double
The current minimum value of the range.
name
Link copied to clipboard
val name: String
The name parameter preceded by a whitespace if it was not null, or an empty string otherwise.

Sources

jvm source
Link copied to clipboard