Class AxisSelectionComboBoxModel

  • All Implemented Interfaces:
    java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel, javax.swing.MutableComboBoxModel

    public class AxisSelectionComboBoxModel
    extends javax.swing.DefaultComboBoxModel
    Adapter class for interfacing Selection with Swing's ComboBox.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class javax.swing.AbstractListModel

        listenerList
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getElementAt​(int index)  
      int getIndexOf​(java.lang.Object anObject)  
      int getSize()  
      • Methods inherited from class javax.swing.DefaultComboBoxModel

        addAll, addAll, addElement, getSelectedItem, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItem
      • 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 Detail

      • AxisSelectionComboBoxModel

        public AxisSelectionComboBoxModel​(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection,
                                          com.macrofocus.high_d.axis.group.AxisGroupModel<?,​?> root)
      • AxisSelectionComboBoxModel

        public AxisSelectionComboBoxModel​(MutableSingleSelection<com.macrofocus.high_d.axis.AxisModel> selection,
                                          com.macrofocus.high_d.axis.group.AxisGroupModel<?,​?> root,
                                          boolean addNull)
    • Method Detail

      • getSize

        public int getSize()
        Specified by:
        getSize in interface javax.swing.ListModel
        Overrides:
        getSize in class javax.swing.DefaultComboBoxModel
      • getIndexOf

        public int getIndexOf​(java.lang.Object anObject)
        Overrides:
        getIndexOf in class javax.swing.DefaultComboBoxModel
      • getElementAt

        public java.lang.Object getElementAt​(int index)
        Specified by:
        getElementAt in interface javax.swing.ListModel
        Overrides:
        getElementAt in class javax.swing.DefaultComboBoxModel