SpinnerBase

abstract class SpinnerBase<V, P : Property<V>> : Region, HasReadOnly

Displays a TextField where a value can by typed in, as well 'up' and 'down' buttons where the value can be adjusted stepwise. This base class doesn't define what stepwise means. For example, IntSpinner has a IntSpinner.smallStep, therefore stepwise does not mean increment/decrement. The value of a spinner does not have to be Comparable, but is required for the subclass ComparableSpinner.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard

Properties

Link copied to clipboard
Link copied to clipboard

Should value change while typing into the text-field? The default is false. value will only be updated when the spinner loses input focus, or when the Enter key is pressed.

Link copied to clipboard
open override val children: ObservableList<Node>

The base class Node has no children, so this is an empty list.

Link copied to clipboard
Link copied to clipboard
abstract var largeStep: V
Link copied to clipboard
abstract val largeStepProperty: P
Link copied to clipboard
override var readOnly: Boolean
Link copied to clipboard
Link copied to clipboard
abstract var smallStep: V
Link copied to clipboard
abstract val smallStepProperty: P
Link copied to clipboard
abstract var value: V
Link copied to clipboard
abstract val valueProperty: P

Functions

Link copied to clipboard
open fun adjust(direction: Int, byLargeStep: Boolean = false)
Link copied to clipboard
abstract fun adjustment(direction: Int, byLargeStep: Boolean): V
Link copied to clipboard
open override fun Number.em(): ObservableOptionalFloat

Converts em units to LogicalPixels.

Link copied to clipboard
abstract fun isValid(newValue: V): Boolean
Link copied to clipboard
open override fun nodeMinHeight(): Float

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinHeight. The default implementation returns 0.

Link copied to clipboard
open override fun nodeMinWidth(): Float

Each subclass of node can determine the minimum width it requires. This can be overridden on an ad-hoc basis using overrideMinWidth. The default implementation returns 0.

Link copied to clipboard
open override fun nodePrefHeight(): Float

Each subclass of node can determine its preferred height. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun nodePrefWidth(): Float

Each subclass of node can determine its preferred width. As most nodes are composed of smaller nodes, this is typically calculated using evalPrefWidth of the child nodes, with extra added for spacing, padding and borders.

Link copied to clipboard
open override fun toString(): String