intellij-randomness / com.fwdekker.randomness.ui / JDoubleSpinner

JDoubleSpinner

class JDoubleSpinner : JNumberSpinner<Double>

A JNumberSpinner for doubles.

Parameters

value - the default value

minValue - the smallest number that may be represented

maxValue - the largest number that may be represented

stepSize - the default value to increment and decrement by

description - the description to use in error messages

Constructors

<init>

JDoubleSpinner(value: Double = 0.0, minValue: Double = -Double.MAX_VALUE, maxValue: Double = Double.MAX_VALUE, stepSize: Double = 0.1, description: String? = null)

A JNumberSpinner for doubles.

Properties

numberToT

val numberToT: (Number) -> Double

Transforms a Number into a T.

Inherited Properties

maxValue

var maxValue: T

The maximal allowed value.

minValue

var minValue: T

The minimal allowed value.

Inherited Functions

getValue

open fun getValue(): T

Returns the current value of the spinner.

setValue

open fun setValue(value: Any): Unit

Sets the value of the spinner.

validateValue

fun validateValue(): ValidationInfo?

Validates the current value.