public class SingleObjectComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel
构造器和说明 |
---|
SingleObjectComboBoxModel() |
SingleObjectComboBoxModel(java.text.SimpleDateFormat dateFormat) |
限定符和类型 | 方法和说明 |
---|---|
java.text.SimpleDateFormat |
getDateFormat() |
java.lang.Object |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
setDateFormat(java.text.SimpleDateFormat dateFormat) |
void |
setSelectedItem(java.lang.Object anItem) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public SingleObjectComboBoxModel()
public SingleObjectComboBoxModel(java.text.SimpleDateFormat dateFormat)
public void setDateFormat(java.text.SimpleDateFormat dateFormat)
public java.text.SimpleDateFormat getDateFormat()
public void setSelectedItem(java.lang.Object anItem)
setSelectedItem
在接口中 javax.swing.ComboBoxModel
public java.lang.Object getSelectedItem()
getSelectedItem
在接口中 javax.swing.ComboBoxModel
public java.lang.Object getElementAt(int index)
getElementAt
在接口中 javax.swing.ListModel
public int getSize()
getSize
在接口中 javax.swing.ListModel