T - the type of the elements of this modelpublic class SimpleComboBoxModel<T> extends Object implements ComboBoxModel<T>
| Constructor and Description |
|---|
SimpleComboBoxModel(ListModel<? extends T> pListModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
addListDataListener(ListDataListener pListener) |
T |
getElementAt(int pIdx) |
T |
getSelectedItem() |
int |
getSize() |
void |
removeListDataListener(ListDataListener pListener) |
void |
setSelectedItem(Object pSelectedItem) |
public T getSelectedItem()
getSelectedItem in interface ComboBoxModel<T>public void setSelectedItem(Object pSelectedItem)
setSelectedItem in interface ComboBoxModel<T>public T getElementAt(int pIdx)
getElementAt in interface ListModel<T>public void addListDataListener(ListDataListener pListener)
addListDataListener in interface ListModel<T>public void removeListDataListener(ListDataListener pListener)
removeListDataListener in interface ListModel<T>Copyright © 2023. All rights reserved.