Selector

interface Selector<T : Any> : Fragment

A Selector is a one line input to select a value of type T from a list of values. It gets a list of objects you can cycle through with a left and a right button.

You must provide the total width of the Fragment it may take up within its parent, and a list of values to cycle through.

Optionally you can specify if the text on the label should be centered, default is true. If the toString method of T is not well suited for the label, you can pass a different one.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
toString
Link copied to clipboard
common
open fun toString(): String

Properties

root
Link copied to clipboard
common
abstract val root: Component
The Component this Fragment contains.
selected
Link copied to clipboard
common
abstract val selected: T
selectedValue
Link copied to clipboard
common
abstract val selectedValue: ObservableValue<T>
values
Link copied to clipboard
common
abstract val values: List<T>
valuesProperty
Link copied to clipboard
common
abstract val valuesProperty: ListProperty<T>

Inheritors

DefaultSelector
Link copied to clipboard

Sources

(source)
Link copied to clipboard