public class ComboBoxListWrapper<E> extends javax.swing.AbstractListModel<E> implements javax.swing.ComboBoxModel<E>, Updatable
Constructor and Description |
---|
ComboBoxListWrapper(javax.swing.ListModel<E> base) |
Modifier and Type | Method and Description |
---|---|
void |
addListDataListener(javax.swing.event.ListDataListener l) |
E |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
removeListDataListener(javax.swing.event.ListDataListener l) |
void |
setSelectedItem(java.lang.Object anItem) |
boolean |
update() |
public ComboBoxListWrapper(javax.swing.ListModel<E> base)
public int getSize()
getSize
in interface javax.swing.ListModel<E>
ListModel.getSize()
public E getElementAt(int index)
getElementAt
in interface javax.swing.ListModel<E>
ListModel.getElementAt(int)
public void addListDataListener(javax.swing.event.ListDataListener l)
public void removeListDataListener(javax.swing.event.ListDataListener l)
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem
in interface javax.swing.ComboBoxModel<E>
ComboBoxModel.setSelectedItem(java.lang.Object)
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel<E>
ComboBoxModel.getSelectedItem()
public boolean update()
update
in interface Updatable
Updatable.update()