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 TypeMethodDescriptionvoid
addElement
(E obj) (package private) static <E> int
binarySearch
(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, 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
-
Field Details
-
comparator
-
-
Constructor Details
-
SortedComboBoxModel
SortedComboBoxModel(E[] items, Comparator<E> c)
-
-
Method Details
-
addElement
- Specified by:
addElement
in interfaceMutableComboBoxModel<E>
- Overrides:
addElement
in classDefaultComboBoxModel<E>
-
sort
-
binarySearch
-