Class ConfigurationModel

  • All Implemented Interfaces:
    javax.swing.ComboBoxModel, javax.swing.ListModel

    public class ConfigurationModel
    extends java.lang.Object
    implements javax.swing.ComboBoxModel
    • Field Detail

      • listeners

        protected java.util.List<javax.swing.event.ListDataListener> listeners
        Listeners.
      • modelinfo

        protected IModelInfo modelinfo
        The model info.
      • selection

        protected int selection
        Selection.
    • Constructor Detail

      • ConfigurationModel

        public ConfigurationModel​(IModelInfo modelinfo)
        Creates the model.
        Parameters:
        modelinfo - The model info.
    • Method Detail

      • getSize

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

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

        public void addListDataListener​(javax.swing.event.ListDataListener l)
        Specified by:
        addListDataListener in interface javax.swing.ListModel
      • removeListDataListener

        public void removeListDataListener​(javax.swing.event.ListDataListener l)
        Specified by:
        removeListDataListener in interface javax.swing.ListModel
      • setSelectedItem

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

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

        public void fireModelChange()