Package com.formdev.flatlaf.themeeditor
Class FlatThemeFileEditor.SortedComboBoxModel<E>
java.lang.Object
javax.swing.AbstractListModel<E>
javax.swing.DefaultComboBoxModel<E>
com.formdev.flatlaf.themeeditor.FlatThemeFileEditor.SortedComboBoxModel<E>
- All Implemented Interfaces:
Serializable,ComboBoxModel<E>,ListModel<E>,MutableComboBoxModel<E>
- Enclosing class:
FlatThemeFileEditor
-
Field Summary
FieldsFields inherited from class javax.swing.AbstractListModel
listenerList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElement(E obj) (package private) static <E> intbinarySearch(ListModel<E> model, E key, Comparator<E> c) (package private) static <E> E[]sort(E[] items, Comparator<E> c) Methods inherited from class javax.swing.DefaultComboBoxModel
addAll, addAll, getElementAt, getIndexOf, getSelectedItem, getSize, insertElementAt, removeAllElements, removeElement, removeElementAt, setSelectedItemMethods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.ListModel
addListDataListener, removeListDataListener
-
Field Details
-
comparator
-
-
Constructor Details
-
SortedComboBoxModel
SortedComboBoxModel(E[] items, Comparator<E> c)
-
-
Method Details
-
addElement
- Specified by:
addElementin interfaceMutableComboBoxModel<E>- Overrides:
addElementin classDefaultComboBoxModel<E>
-
sort
-
binarySearch
-