public class ClassComboBoxModel<A> extends AbstractListModel implements ComboBoxModel, Serializable
Modifier and Type | Field and Description |
---|---|
private List<Class<? extends A>> |
content |
private int |
selectedIndex |
private static long |
serialVersionUID |
listenerList
Constructor and Description |
---|
ClassComboBoxModel(Class<? extends A>[] content) |
ClassComboBoxModel(List<Class<? extends A>> content) |
Modifier and Type | Method and Description |
---|---|
Class<? extends A> |
getClassAt(int index) |
Object |
getElementAt(int index) |
Class<? extends A> |
getSelectedClass() |
String |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListDataListener, removeListDataListener
private static final long serialVersionUID
private int selectedIndex
public String getSelectedItem()
getSelectedItem
in interface ComboBoxModel
public void setSelectedItem(Object anItem)
setSelectedItem
in interface ComboBoxModel
public Object getElementAt(int index)
getElementAt
in interface ListModel