public class UndoableRowSorter<M extends javax.swing.table.TableModel>
extends javax.swing.table.TableRowSorter<M>
Constructor and Description |
---|
UndoableRowSorter()
Creates an
UndoableRowSorter with an empty model. |
UndoableRowSorter(M model)
Creates an
UndoableRowSorter using model
as the underlying TableModel . |
Modifier and Type | Method and Description |
---|---|
void |
toggleSortOrder(int column) |
getComparator, getStringConverter, setModel, setStringConverter, useToString
allRowsChanged, convertRowIndexToModel, convertRowIndexToView, getMaxSortKeys, getModel, getModelRowCount, getModelWrapper, getRowFilter, getSortKeys, getSortsOnUpdates, getViewRowCount, isSortable, modelStructureChanged, rowsDeleted, rowsInserted, rowsUpdated, rowsUpdated, setComparator, setMaxSortKeys, setModelWrapper, setRowFilter, setSortable, setSortKeys, setSortsOnUpdates, sort
public UndoableRowSorter()
UndoableRowSorter
with an empty model.public UndoableRowSorter(M model)
UndoableRowSorter
using model
as the underlying TableModel
.model
- the underlying TableModel
to use,
null
is treated as an empty modelpublic void toggleSortOrder(int column)
toggleSortOrder
in class javax.swing.DefaultRowSorter<M extends javax.swing.table.TableModel,java.lang.Integer>