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

JLongSpinner

class JLongSpinner : JNumberSpinner<Long>

A JNumberSpinner for longs.

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>

JLongSpinner(value: Long = 0L, minValue: Long = Long.MIN_VALUE, maxValue: Long = Long.MAX_VALUE, stepSize: Long = 1L, name: String? = null)

A JNumberSpinner for longs.

Properties

numberToT

val numberToT: (Number) -> Long

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.