SpinButtonModel

An iterator-like model that tracks the items a SpinButton can present.

Inheritors

Properties

Link copied to clipboard

Notifies of changes to the current value.

Link copied to clipboard
abstract val hasNext: Boolean

true if a call to next will move value forward.

Link copied to clipboard
abstract val hasPrevious: Boolean

true if a call to next will move value backward.

Link copied to clipboard
abstract val value: T

Currently selected value of the model.

Functions

Link copied to clipboard
abstract fun next()

Advances the model's value to the next item if it hasNext.

Link copied to clipboard
abstract fun previous()

Advances the model's value to the previous item if it hasNext.