PropertyRadioButton

class PropertyRadioButton<V, P : Property<V>>(val property: P, val value: V, text: String, graphic: Node? = null) : SelectButtonBase

Behaves like a ToggleButton, but also has a value associated with it.

V is a simple data type, such as String?. P is a Property whose value is of type V, such as OptionalStringProperty.

When a selected PropertyRadioButton, the property's value remains unchanged, and the button remains selected.

In contrast, when a selected PropertyToggleButton is pressed, the property is set to null and no items are selected.

Constructors

Link copied to clipboard
constructor(property: P, value: V, text: String, graphic: Node? = null)

Properties

Link copied to clipboard
val property: P
Link copied to clipboard
open override var selected: Boolean
Link copied to clipboard
Link copied to clipboard
val value: V

This button is selected when property.value == value