Class JAXXComboBox.JAXXComboBoxModel

java.lang.Object
javax.swing.AbstractListModel
jaxx.runtime.swing.JAXXComboBox.JAXXComboBoxModel
All Implemented Interfaces:
java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel
Enclosing class:
JAXXComboBox

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

    Fields inherited from class javax.swing.AbstractListModel

    listenerList
  • Constructor Summary

    Constructors
    Constructor Description
    JAXXComboBoxModel​(java.util.List<Item> items)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object getElementAt​(int i)  
    java.util.List<Item> getItems()  
    java.lang.Object getSelectedItem()  
    int getSize()  
    void setSelectedItem​(java.lang.Object selectedItem)  

    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
  • Constructor Details

    • JAXXComboBoxModel

      public JAXXComboBoxModel​(java.util.List<Item> items)
  • Method Details

    • getItems

      public java.util.List<Item> getItems()
    • getElementAt

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

      public int getSize()
      Specified by:
      getSize 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 selectedItem)
      Specified by:
      setSelectedItem in interface javax.swing.ComboBoxModel