Class ComboKeySelectionManager
- java.lang.Object
-
- org.opends.guitools.controlpanel.event.ComboKeySelectionManager
-
- All Implemented Interfaces:
JComboBox.KeySelectionManager
public class ComboKeySelectionManager extends Object implements JComboBox.KeySelectionManager
A class used to allow the user to type a sequence of characters that will select automatically an item in the combo box. Note that there must be one instance of this class per combo box. Two combo boxes must not share the same ComboKeySelectionManager object and two ComboKeySelectionManager must not be used by the same combo box.
-
-
Constructor Summary
Constructors Constructor Description ComboKeySelectionManager(JComboBox combo)Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intselectionForKey(char key, ComboBoxModel model)
-
-
-
Constructor Detail
-
ComboKeySelectionManager
public ComboKeySelectionManager(JComboBox combo)
Default constructor.- Parameters:
combo- the combo box that is attached to this selection key manager.
-
-
Method Detail
-
selectionForKey
public int selectionForKey(char key, ComboBoxModel model)- Specified by:
selectionForKeyin interfaceJComboBox.KeySelectionManager
-
-