Class StringKeyManager

  • All Implemented Interfaces:
    javax.swing.JComboBox.KeySelectionManager

    public class StringKeyManager
    extends java.lang.Object
    implements javax.swing.JComboBox.KeySelectionManager
    KeySelectionManager to manage the select-per-keystroke in a JComboBox (The default KeySelectionManager fails because all strings start with whitespace ' ').

    Unfortunately, this class cannot be used anymore because it does not work together with the listener TypesBoxAL.

    • Constructor Summary

      Constructors 
      Constructor Description
      StringKeyManager​(javax.swing.JComboBox<?> box)
      Creates a new instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int selectionForKey​(char aKey, javax.swing.ComboBoxModel aModel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StringKeyManager

        public StringKeyManager​(javax.swing.JComboBox<?> box)
        Creates a new instance.
        Parameters:
        box - the JComboBox to create a StringKeyManager for
    • Method Detail

      • selectionForKey

        public int selectionForKey​(char aKey,
                                   javax.swing.ComboBoxModel aModel)
        Specified by:
        selectionForKey in interface javax.swing.JComboBox.KeySelectionManager