invoke

operator fun invoke(progression: IntProgression, itemVisualizer: ItemVisualizer<Int, Any>? = null): SpinButton<Int, IntSpinButtonModel>(source)

Creates a new SpinButton that has the Int values in the given progression.

Parameters

progression

to use for the underlying model

itemVisualizer

to visualize the values


operator fun <T> invoke(values: List<T>, itemVisualizer: ItemVisualizer<T, Any>? = null): SpinButton<T, ListSpinButtonModel<T, List<T>>>(source)

Creates a new SpinButton that cycles through the given values.

Parameters

values

to use for the underlying model

itemVisualizer

to visualize the values


operator fun <T, M : SpinButtonModel<T>> invoke(model: M, itemVisualizer: ItemVisualizer<T, SpinButton<T, M>>? = null): SpinButton<T, M>(source)

Creates a new SpinButton with values contained in the given model.

Parameters

model

to use with the spin-button

itemVisualizer

to visualize the values