public class SortedComboBoxModel<E>
extends javax.swing.DefaultComboBoxModel<E>
Constructor and Description |
---|
SortedComboBoxModel()
Create an empty model that will use the natural sort order of the item
|
SortedComboBoxModel(java.util.Comparator comparator)
Create an empty model that will use the specified Comparator
|
SortedComboBoxModel(E[] items)
Create a model with data and use the nature sort order of the items
|
SortedComboBoxModel(E[] items,
java.util.Comparator comparator)
Create a model with data and use the specified Comparator
|
SortedComboBoxModel(java.util.Vector<E> items)
Create a model with data and use the nature sort order of the items
|
SortedComboBoxModel(java.util.Vector<E> items,
java.util.Comparator comparator)
Create a model with data and use the specified Comparator
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(E element) |
void |
insertElementAt(E element,
int index) |
getElementAt, getIndexOf, getSelectedItem, getSize, removeAllElements, removeElement, removeElementAt, setSelectedItem
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
public SortedComboBoxModel()
public SortedComboBoxModel(java.util.Comparator comparator)
comparator
- public SortedComboBoxModel(E[] items)
items
- public SortedComboBoxModel(E[] items, java.util.Comparator comparator)
items
- comparator
- public SortedComboBoxModel(java.util.Vector<E> items)
items
- public SortedComboBoxModel(java.util.Vector<E> items, java.util.Comparator comparator)
items
- comparator
- public void addElement(E element)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.