tornadofx / tornadofx / javafx.scene.control.ChoiceBox

Extensions for javafx.scene.control.ChoiceBox

action fun ChoiceBox<*>.action(op: () -> Unit): Unit
bind fun <T> ChoiceBox<T>.bind(property: ObservableValue<T>, readonly: Boolean = false): Unit
command var ChoiceBox<*>.command: Command<*>
commandParameter var ChoiceBox<*>.commandParameter: Any?
commandParameterProperty var ChoiceBox<*>.commandParameterProperty: Property<Any?>
commandProperty var ChoiceBox<*>.commandProperty: Property<Command<*>>
validator fun <T> ChoiceBox<T>.validator(trigger: ValidationTrigger = ValidationTrigger.OnChange(), validator: ValidationContext.(T?) -> ValidationMessage?): <ERROR CLASS>

Add a validator to a ChoiceBox that is already bound to a model property.