Package com.formdev.flatlaf.ui
Class FlatComboBoxUI.FlatKeySelectionManager
java.lang.Object
com.formdev.flatlaf.ui.FlatComboBoxUI.FlatKeySelectionManager
- All Implemented Interfaces:
JComboBox.KeySelectionManager
,UIResource
- Enclosing class:
FlatComboBoxUI
private class FlatComboBoxUI.FlatKeySelectionManager
extends Object
implements JComboBox.KeySelectionManager, UIResource
Key selection manager that delegates to the default manager.
Shows the popup if Space key is pressed and "typed characters" buffer is empty.
If items contain spaces (e.g. "a b") it is still possible to select them
by pressing keys 'a', 'Space' and 'b'.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JComboBox.KeySelectionManager
private long
private final long
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
delegate
-
timeFactor
private final long timeFactor -
lastTime
private long lastTime
-
-
Constructor Details
-
FlatKeySelectionManager
FlatKeySelectionManager(JComboBox.KeySelectionManager delegate)
-
-
Method Details
-
selectionForKey
- Specified by:
selectionForKey
in interfaceJComboBox.KeySelectionManager
-