org.jdesktop.swingx.sort
Class ListSortController<M extends javax.swing.ListModel>
- java.lang.Object
-
- javax.swing.RowSorter<M>
-
- javax.swing.DefaultRowSorter<M,java.lang.Integer>
-
- org.jdesktop.swingx.sort.DefaultSortController<M>
-
- org.jdesktop.swingx.sort.ListSortController<M>
-
- All Implemented Interfaces:
- SortController<M>
public class ListSortController<M extends javax.swing.ListModel> extends DefaultSortController<M>
A SortController to use with JXList.
-
-
Field Summary
-
Fields inherited from class org.jdesktop.swingx.sort.DefaultSortController
COMPARABLE_COMPARATOR
-
-
Constructor Summary
Constructors Constructor and Description ListSortController(M model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidsetModel(M model)Sets theTableModelto use as the underlying model for thisTableRowSorter.-
Methods inherited from class org.jdesktop.swingx.sort.DefaultSortController
allRowsChanged, convertRowIndexToModel, convertRowIndexToView, getDefaultSortOrderCycle, getModelRowCount, getSortOrder, getSortOrderCycle, getStringValueProvider, getViewRowCount, isSortable, isSortable, modelStructureChanged, resetSortOrders, rowsDeleted, rowsInserted, setSortable, setSortable, setSortOrder, setSortOrderCycle, setStringValueProvider, toggleSortOrder
-
Methods inherited from class javax.swing.DefaultRowSorter
getComparator, getMaxSortKeys, getModel, getRowFilter, getSortKeys, getSortsOnUpdates, rowsUpdated, rowsUpdated, setComparator, setMaxSortKeys, setRowFilter, setSortKeys, setSortsOnUpdates, sort
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jdesktop.swingx.sort.SortController
getComparator, getRowFilter, getSortsOnUpdates, setComparator, setRowFilter, setSortsOnUpdates
-
-
-
-
Constructor Detail
-
ListSortController
public ListSortController(M model)
- Parameters:
model-
-
-
Method Detail
-
setModel
public void setModel(M model)
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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG