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 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

      public DataSetComboBoxModel(Dataset data)
  • Method Details

    • findLabel

      public int findLabel(String label)
    • findStringValue

      public int findStringValue(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 ListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
    • getElementAt

      public com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection getElementAt(int index)
      Specified by:
      getElementAt in interface ListModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
    • getSelectedItem

      public com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection getSelectedItem()
      Specified by:
      getSelectedItem in interface ComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>
    • setSelectedItem

      public void setSelectedItem(Object anObject)
      Specified by:
      setSelectedItem in interface ComboBoxModel<com.inductiveautomation.factorypmi.application.components.PMIComboBox.DataSetComboBoxModel.CBSelection>