public class PMIComboBox.DataSetComboBoxModel
extends javax.swing.AbstractListModel
implements javax.swing.ComboBoxModel
Modifier and Type | Field and Description |
---|---|
protected java.util.List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection> |
items |
protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection |
selected |
Constructor and Description |
---|
DataSetComboBoxModel(Dataset data) |
Modifier and Type | Method and Description |
---|---|
int |
find(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection s) |
int |
findLabel(java.lang.String label) |
int |
findStringValue(java.lang.String str) |
int |
findValue(int value) |
java.lang.Object |
getElementAt(int index) |
java.lang.Object |
getSelectedItem() |
int |
getSize() |
void |
setSelectedItem(java.lang.Object anObject) |
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection selected
protected java.util.List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection> items
public DataSetComboBoxModel(Dataset data)
public int findLabel(java.lang.String label)
public int findStringValue(java.lang.String str)
public int findValue(int value)
public int find(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection s)
public int getSize()
getSize
in interface javax.swing.ListModel
public java.lang.Object getElementAt(int index)
getElementAt
in interface javax.swing.ListModel
public java.lang.Object getSelectedItem()
getSelectedItem
in interface javax.swing.ComboBoxModel
public void setSelectedItem(java.lang.Object anObject)
setSelectedItem
in interface javax.swing.ComboBoxModel