Package jmri.jmrit.display
Class MemoryOrGVComboIcon.ComboModel
- java.lang.Object
-
- javax.swing.AbstractListModel<E>
-
- javax.swing.DefaultComboBoxModel<java.lang.String>
-
- jmri.jmrit.display.MemoryOrGVComboIcon.ComboModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.ComboBoxModel<java.lang.String>
,javax.swing.ListModel<java.lang.String>
,javax.swing.MutableComboBoxModel<java.lang.String>
- Enclosing class:
- MemoryOrGVComboIcon
protected class MemoryOrGVComboIcon.ComboModel extends javax.swing.DefaultComboBoxModel<java.lang.String>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ComboModel()
ComboModel(java.lang.String[] l)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addElement(java.lang.String obj)
void
insertElementAt(java.lang.String obj, int idx)
-
Methods inherited from class javax.swing.DefaultComboBoxModel
addAll, addAll, getElementAt, getIndexOf, getSelectedItem, getSize, removeAllElements, removeElement, removeElementAt, setSelectedItem
-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
ComboModel
ComboModel()
-
ComboModel
ComboModel(java.lang.String[] l)
-
-
Method Detail
-
addElement
public void addElement(java.lang.String obj)
- Specified by:
addElement
in interfacejavax.swing.MutableComboBoxModel<java.lang.String>
- Overrides:
addElement
in classjavax.swing.DefaultComboBoxModel<java.lang.String>
-
insertElementAt
public void insertElementAt(java.lang.String obj, int idx)
- Specified by:
insertElementAt
in interfacejavax.swing.MutableComboBoxModel<java.lang.String>
- Overrides:
insertElementAt
in classjavax.swing.DefaultComboBoxModel<java.lang.String>
-
-