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

JIntSpinner

class JIntSpinner : JNumberSpinner<Int>

A JNumberSpinner for integers.

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

name - the name of this component

Constructors

<init>

JIntSpinner(value: Int = 0, minValue: Int = Int.MIN_VALUE, maxValue: Int = Int.MAX_VALUE, stepSize: Int = 1, name: String? = null)

A JNumberSpinner for integers.

Properties

numberToT

val numberToT: (Number) -> Int

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.