Class SavedSettingsTabPanel.SettingsComboboxModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ComboBoxModel<java.lang.String>, javax.swing.ListModel<java.lang.String>
    Enclosing class:
    SavedSettingsTabPanel

    class SavedSettingsTabPanel.SettingsComboboxModel
    extends javax.swing.AbstractListModel<java.lang.String>
    implements javax.swing.ComboBoxModel<java.lang.String>
    Class to interface between the saved settings list and a JComboBox
    Author:
    Erich Schubert
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String selected
      Selected entry
      private static long serialVersionUID
      Serial version
      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getElementAt​(int index)  
      java.lang.String getSelectedItem()  
      int getSize()  
      void setSelectedItem​(java.lang.Object anItem)  
      void update()
      Force an update
      • 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

      • serialVersionUID

        private static final long serialVersionUID
        Serial version
        See Also:
        Constant Field Values
      • selected

        protected java.lang.String selected
        Selected entry
    • Constructor Detail

      • SettingsComboboxModel

        public SettingsComboboxModel()
        Constructor
    • Method Detail

      • getSelectedItem

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

        public void setSelectedItem​(java.lang.Object anItem)
        Specified by:
        setSelectedItem in interface javax.swing.ComboBoxModel<java.lang.String>
      • getElementAt

        public java.lang.String getElementAt​(int index)
        Specified by:
        getElementAt in interface javax.swing.ListModel<java.lang.String>
      • getSize

        public int getSize()
        Specified by:
        getSize in interface javax.swing.ListModel<java.lang.String>
      • update

        public void update()
        Force an update