de.miethxml.toolkit.ui.event
Class ComboBoxModelWrapper
java.lang.Object
de.miethxml.toolkit.ui.event.ComboBoxModelWrapper
- All Implemented Interfaces:
- javax.swing.ComboBoxModel, javax.swing.ListModel
- public class ComboBoxModelWrapper
- extends java.lang.Object
- implements javax.swing.ComboBoxModel
This class wraps a ListModel to a ComboBoxModel.
- Author:
- simon
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ComboBoxModelWrapper
public ComboBoxModelWrapper(javax.swing.ListModel model)
getSelectedItem
public java.lang.Object getSelectedItem()
- Specified by:
getSelectedItem in interface javax.swing.ComboBoxModel
setSelectedItem
public void setSelectedItem(java.lang.Object obj)
- Specified by:
setSelectedItem in interface javax.swing.ComboBoxModel
getSize
public int getSize()
- Specified by:
getSize in interface javax.swing.ListModel
getElementAt
public java.lang.Object getElementAt(int arg0)
- Specified by:
getElementAt in interface javax.swing.ListModel
addListDataListener
public void addListDataListener(javax.swing.event.ListDataListener arg0)
- Specified by:
addListDataListener in interface javax.swing.ListModel
removeListDataListener
public void removeListDataListener(javax.swing.event.ListDataListener arg0)
- Specified by:
removeListDataListener in interface javax.swing.ListModel