public class TextFieldWithHistory.MyModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel
Constructor and Description |
---|
MyModel() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(java.lang.Object obj) |
boolean |
contains(java.lang.String aNewValue) |
void |
fireContentsChanged() |
java.lang.Object |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
insertElementAt(java.lang.Object obj,
int index) |
void |
setItems(java.util.List<java.lang.String> aList) |
void |
setSelectedItem(java.lang.Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public int getSize()
getSize
in interface javax.swing.ListModel
public void addElement(java.lang.Object obj)
public void insertElementAt(java.lang.Object obj, int index)
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem
in interface javax.swing.ComboBoxModel
public void fireContentsChanged()
public boolean contains(java.lang.String aNewValue)
public void setItems(java.util.List<java.lang.String> aList)