Class PMIComboBox.DataSetComboBoxModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
    Enclosing class:
    PMIComboBox

    public class PMIComboBox.DataSetComboBoxModel
    extends javax.swing.AbstractListModel
    implements javax.swing.ComboBoxModel
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection> items  
      protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection selected  
      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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)  
      • 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 Detail

      • selected

        protected com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection selected
      • items

        protected java.util.List<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection> items
    • Constructor Detail

      • DataSetComboBoxModel

        public DataSetComboBoxModel​(Dataset data)
    • Method Detail

      • findLabel

        public int findLabel​(java.lang.String label)
      • findStringValue

        public int findStringValue​(java.lang.String str)
      • findValue

        public int findValue​(int value)
      • find

        public int find​(com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection s)
      • getSize

        public int getSize()
        Specified by:
        getSize in interface javax.swing.ListModel
      • getElementAt

        public java.lang.Object getElementAt​(int index)
        Specified by:
        getElementAt in interface javax.swing.ListModel
      • getSelectedItem

        public java.lang.Object getSelectedItem()
        Specified by:
        getSelectedItem in interface javax.swing.ComboBoxModel
      • setSelectedItem

        public void setSelectedItem​(java.lang.Object anObject)
        Specified by:
        setSelectedItem in interface javax.swing.ComboBoxModel