Class StringComboBoxModel
- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- de.alpharogroup.swing.combobox.model.AbstractComboBoxModel<java.lang.String>
-
- de.alpharogroup.swing.combobox.model.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 classStringComboBoxModelis an implementation of the abstract classAbstractComboBoxModelforStringvalues.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.alpharogroup.swing.combobox.model.AbstractComboBoxModel
comboList, selectedItem
-
-
Constructor Summary
Constructors Constructor Description StringComboBoxModel(java.lang.String[] comboArray)Instantiates a newStringComboBoxModelfrom the given arrayStringComboBoxModel(java.lang.String[] comboArray, java.lang.String selectedItem)Instantiates a newStringComboBoxModelfrom the given array and set as selected item the given valueStringComboBoxModel(java.util.List<java.lang.String> comboList)Instantiates a newStringComboBoxModelfrom the given listStringComboBoxModel(java.util.List<java.lang.String> comboList, java.lang.String selectedItem)Instantiates a newStringComboBoxModelfrom the given list and set as selected item the given value
-
Method Summary
-
Methods inherited from class de.alpharogroup.swing.combobox.model.AbstractComboBoxModel
actionPerformed, getElementAt, getSize, setComboSet, setSelectedItem
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
StringComboBoxModel
public StringComboBoxModel(java.util.List<java.lang.String> comboList)
Instantiates a newStringComboBoxModelfrom the given list- Parameters:
comboList- the combo list
-
StringComboBoxModel
public StringComboBoxModel(java.util.List<java.lang.String> comboList, java.lang.String selectedItem)Instantiates a newStringComboBoxModelfrom the given list and set as selected item the given value- Parameters:
comboList- the combo listselectedItem- the selected item
-
StringComboBoxModel
public StringComboBoxModel(java.lang.String[] comboArray)
Instantiates a newStringComboBoxModelfrom the given array- Parameters:
comboArray- the combo array
-
StringComboBoxModel
public StringComboBoxModel(java.lang.String[] comboArray, java.lang.String selectedItem)Instantiates a newStringComboBoxModelfrom the given array and set as selected item the given value- Parameters:
comboArray- the combo arrayselectedItem- the selected item
-
-