Class ListSortController<M extends ListModel>
java.lang.Object
javax.swing.RowSorter<M>
javax.swing.DefaultRowSorter<M,Integer>
org.jdesktop.swingx.sort.DefaultSortController<M>
org.jdesktop.swingx.sort.ListSortController<M>
- All Implemented Interfaces:
SortController<M>
A SortController to use with JXList.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classImplementation of DefaultRowSorter.ModelWrapper that delegates to a TableModel.Nested classes/interfaces inherited from class DefaultRowSorter
DefaultRowSorter.ModelWrapper<M,I> Nested classes/interfaces inherited from class RowSorter
RowSorter.SortKey -
Field Summary
FieldsFields inherited from class DefaultSortController
cachedModelRowCount, COMPARABLE_COMPARATOR -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DefaultSortController
allRowsChanged, convertRowIndexToModel, convertRowIndexToView, getDefaultSortOrderCycle, getModelRowCount, getSortOrder, getSortOrderCycle, getStringValueProvider, getViewRowCount, isSortable, isSortable, modelStructureChanged, resetSortOrders, rowsDeleted, rowsInserted, setSortable, setSortable, setSortOrder, setSortOrderCycle, setStringValueProvider, toggleSortOrderMethods inherited from class DefaultRowSorter
getComparator, getMaxSortKeys, getModel, getModelWrapper, getRowFilter, getSortKeys, getSortsOnUpdates, rowsUpdated, rowsUpdated, setComparator, setMaxSortKeys, setModelWrapper, setRowFilter, setSortKeys, setSortsOnUpdates, sort, useToStringMethods inherited from class RowSorter
addRowSorterListener, fireRowSorterChanged, fireSortOrderChanged, removeRowSorterListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface SortController
getComparator, getRowFilter, getSortsOnUpdates, setComparator, setRowFilter, setSortsOnUpdates
-
Field Details
-
listModel
-
-
Constructor Details
-
ListSortController
- Parameters:
model-
-
-
Method Details
-
setModel
Sets theTableModelto use as the underlying model for thisTableRowSorter. A value ofnullcan be used to set an empty model.- Parameters:
model- the underlying model to use, ornull
-