Class SortableListModelImpl<T>
- java.lang.Object
-
- javax.swing.AbstractListModel<T>
-
- org.processmining.framework.util.ui.widgets.traceview.model.SortableListModelImpl<T>
-
- Type Parameters:
T-
- All Implemented Interfaces:
java.io.Serializable,javax.swing.ListModel<T>,MutableListModel<T>,SortableListModel<T>
public final class SortableListModelImpl<T> extends javax.swing.AbstractListModel<T> implements SortableListModel<T>
Provides a sortedListModelbased on anArrayListfor use with aJList.- Author:
- F. Mannhardt
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SortableListModelImpl()SortableListModelImpl(java.util.Collection<T> traces)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(T element)booleanaddAll(java.lang.Iterable<T> elements)voidclear()TgetElementAt(int index)intgetSize()voidsort(java.util.Comparator<T> comparator)-
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
-
-
-
-
Constructor Detail
-
SortableListModelImpl
public SortableListModelImpl()
-
SortableListModelImpl
public SortableListModelImpl(java.util.Collection<T> traces)
-
-
Method Detail
-
getSize
public int getSize()
- Specified by:
getSizein interfacejavax.swing.ListModel<T>
-
getElementAt
public T getElementAt(int index)
- Specified by:
getElementAtin interfacejavax.swing.ListModel<T>
-
add
public boolean add(T element)
- Specified by:
addin interfaceMutableListModel<T>
-
addAll
public boolean addAll(java.lang.Iterable<T> elements)
- Specified by:
addAllin interfaceMutableListModel<T>
-
sort
public void sort(java.util.Comparator<T> comparator)
- Specified by:
sortin interfaceSortableListModel<T>
-
clear
public void clear()
- Specified by:
clearin interfaceMutableListModel<T>
-
-