[8:7] extends: Node, Control, Region
JavaFX ComboBox class.
ComboBox (Val
)
Constructor that takes a list of items to set.
Val
is a list of items to set.this
objectsetItems (list lst
)
Sets a list of items for the ComboBox.
lst
is a list of items to set.this
objectgetValue ()
Gets the current selected object.
The
value.setVisibleRows (int Count
)
Sets the number of visible rows to show in the ComboBox.
Count
is an int with the number of rows to show.this
objectonChange (callback OnChange
)
Sets the on change handler callback function. Callback example: onComboBoxChange(ObservableValue, OldValue, NewValue)
OnChange
is a callback function to call on change.this
object