Module MaterialFX

Class MFXComboBox<T>

All Implemented Interfaces:
MFXCombo<T>, MFXMenuControl, Validated, Styleable, EventTarget, Skinnable
Direct Known Subclasses:
MFXFilterComboBox

public class MFXComboBox<T> extends MFXTextField implements MFXCombo<T>
A new, completely remade from scratch ComboBox for JavaFX.

A combo box is basically a text field which shows a menu of items and allows to select them and set the text accordingly.

That's why my implementation extends MFXTextField and implements MFXCombo.

The major features of this new combo are:

- Floating text (inherited from MFXTextField)

- Allows to fully control the popup (offset, alignment)

- Automatically handles selection when the item's list is modified

- Allows to set the combo as editable or not, and in case of changed text to commit the change (pressing enter by default) and specify how to treat the typed text, or cancel the change (pressing Ctrl+Shift+Z by default).

- Also adds a new PseudoClass that activates when the popup opens