Class PMIComboBox.DataSetComboBoxModel
java.lang.Object
javax.swing.AbstractListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel
- All Implemented Interfaces:
Serializable
,ComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
,ListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
- Enclosing class:
- PMIComboBox
public class PMIComboBox.DataSetComboBoxModel
extends AbstractListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
implements ComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection
Fields inherited from class javax.swing.AbstractListModel
listenerList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
find
(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection s) int
int
findStringValue
(String str) int
findValue
(int value) com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection
getElementAt
(int index) com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection
int
getSize()
void
setSelectedItem
(Object anObject) Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Field Details
-
selected
protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection selected -
items
protected List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection> items
-
-
Constructor Details
-
DataSetComboBoxModel
-
-
Method Details
-
findLabel
-
findStringValue
-
findValue
public int findValue(int value) -
find
public int find(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection s) -
getSize
public int getSize() -
getElementAt
public com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection getElementAt(int index) - Specified by:
getElementAt
in interfaceListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
-
getSelectedItem
public com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection getSelectedItem()- Specified by:
getSelectedItem
in interfaceComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
-
setSelectedItem
- Specified by:
setSelectedItem
in interfaceComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
-