Package com.illumon.iris.gui.widget
Class SortedComboBoxModel<T>
java.lang.Object
com.illumon.iris.gui.widget.SortedComboBoxModel<T>
- Type Parameters:
T-
- All Implemented Interfaces:
ComboBoxModel<T>,ListModel<T>,MutableComboBoxModel<T>
A
ComboBoxModel that maintains it's items in a sorted order.-
Constructor Summary
ConstructorsConstructorDescriptionSortedComboBoxModel(Comparator<T> comparator, List<T> items) SortedComboBoxModel(Comparator<T> comparator, T... items) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddElement(T item) voidvoidclear()getElementAt(int index) intgetSize()voidinsertElementAt(T item, int index) voidvoidremoveElement(Object obj) voidremoveElementAt(int index) voidvoidsetSelectedItem(Object anItem)
-
Constructor Details
-
SortedComboBoxModel
-
SortedComboBoxModel
-
-
Method Details
-
setSelectedItem
- Specified by:
setSelectedItemin interfaceComboBoxModel<T>
-
getSelectedItem
- Specified by:
getSelectedItemin interfaceComboBoxModel<T>
-
getSize
public int getSize() -
getElementAt
- Specified by:
getElementAtin interfaceListModel<T>
-
add
-
remove
-
addElement
- Specified by:
addElementin interfaceMutableComboBoxModel<T>
-
removeElement
- Specified by:
removeElementin interfaceMutableComboBoxModel<T>
-
insertElementAt
- Specified by:
insertElementAtin interfaceMutableComboBoxModel<T>
-
removeElementAt
public void removeElementAt(int index) - Specified by:
removeElementAtin interfaceMutableComboBoxModel<T>
-
clear
public void clear() -
addListDataListener
- Specified by:
addListDataListenerin interfaceListModel<T>
-
removeListDataListener
- Specified by:
removeListDataListenerin interfaceListModel<T>
-