Package com.formdev.flatlaf.ui
Class FlatComboBoxUI.FlatKeySelectionManager
- java.lang.Object
-
- com.formdev.flatlaf.ui.FlatComboBoxUI.FlatKeySelectionManager
-
- All Implemented Interfaces:
javax.swing.JComboBox.KeySelectionManager
,javax.swing.plaf.UIResource
- Enclosing class:
- FlatComboBoxUI
private class FlatComboBoxUI.FlatKeySelectionManager extends java.lang.Object implements javax.swing.JComboBox.KeySelectionManager, javax.swing.plaf.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
Fields Modifier and Type Field Description private javax.swing.JComboBox.KeySelectionManager
delegate
private long
lastTime
private long
timeFactor
-
Constructor Summary
Constructors Constructor Description FlatKeySelectionManager(javax.swing.JComboBox.KeySelectionManager delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
selectionForKey(char aKey, javax.swing.ComboBoxModel aModel)
-