Class AutoCompleteComboBoxEditor

  • All Implemented Interfaces:
    ComboBoxEditor

    public class AutoCompleteComboBoxEditor
    extends Object
    implements ComboBoxEditor

    Wrapper around the combobox editor that translates combobox items into strings. The methods setItem and getItem are modified to account for the string conversion.

    This is necessary for those cases where the combobox items have no useful toString() method and a custom ObjectToStringConverter is used.

    If we do not do this, the interaction between ComboBoxEditor and JComboBox will result in firing ActionListener events with the string value of ComboBoxEditor as the currently selected value.

    Author:
    Noel Grandin noelgrandin@gmail.com, Thomas Bierhance