[8:7] extends: Node, Control
JavaFX ChoiceBox class.
ChoiceBox (Val)
Constructor creates a new ChoiceBox object with the provided JavaFX object to set or a list with the available values to set.
Val is a list of strings with the ChoiceBox values.this objectsetItems (list lst)
Sets the available items with the provided list.
lst is a list with the values.this objectgetValue ()
Gets the selected value.
The selected value.onChange (callback OnChange)
Registeres the on change handler with the provided callback. The change handler should take three arguments similar to this function definition. onChoiceBoxChange(ObservableValue, OldValue, NewValue)
OnChange is a callback with the change handler.this object