Class StringComboBoxModel

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.util.EventListener, javax.swing.ComboBoxModel<java.lang.String>, javax.swing.ListModel<java.lang.String>

    public class StringComboBoxModel
    extends AbstractComboBoxModel<java.lang.String>
    The class StringComboBoxModel is an implementation of the abstract class AbstractComboBoxModel for String values.
    See Also:
    Serialized Form
    • Method Summary

      • Methods inherited from class javax.swing.AbstractListModel

        addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface javax.swing.ComboBoxModel

        getSelectedItem
      • Methods inherited from interface javax.swing.ListModel

        addListDataListener, removeListDataListener
    • Constructor Detail

      • StringComboBoxModel

        public StringComboBoxModel​(java.util.List<java.lang.String> comboList)
        Instantiates a new StringComboBoxModel from the given list
        Parameters:
        comboList - the combo list
      • StringComboBoxModel

        public StringComboBoxModel​(java.util.List<java.lang.String> comboList,
                                   java.lang.String selectedItem)
        Instantiates a new StringComboBoxModel from the given list and set as selected item the given value
        Parameters:
        comboList - the combo list
        selectedItem - the selected item
      • StringComboBoxModel

        public StringComboBoxModel​(java.lang.String[] comboArray)
        Instantiates a new StringComboBoxModel from the given array
        Parameters:
        comboArray - the combo array
      • StringComboBoxModel

        public StringComboBoxModel​(java.lang.String[] comboArray,
                                   java.lang.String selectedItem)
        Instantiates a new StringComboBoxModel from the given array and set as selected item the given value
        Parameters:
        comboArray - the combo array
        selectedItem - the selected item