public class ModelRowSorter<M extends TableModel> extends RowSorter<M>
PageableTableRowSorter.SortKey| Constructor and Description |
|---|
ModelRowSorter(M tableModel) |
| Modifier and Type | Method and Description |
|---|---|
void |
allRowsChanged() |
int |
convertRowIndexToModel(int index) |
int |
convertRowIndexToView(int index) |
M |
getModel() |
int |
getModelRowCount() |
List<? extends RowSorter.SortKey> |
getSortKeys() |
int |
getViewRowCount() |
void |
modelStructureChanged() |
void |
rowsDeleted(int firstRow,
int endRow) |
void |
rowsInserted(int firstRow,
int endRow) |
void |
rowsUpdated(int firstRow,
int endRow) |
void |
rowsUpdated(int firstRow,
int endRow,
int column) |
void |
setModel(M model) |
void |
setSortKeys(List<? extends RowSorter.SortKey> sortKeys) |
void |
toggleSortOrder(int column) |
addRowSorterListener, fireRowSorterChanged, fireSortOrderChanged, removeRowSorterListenerpublic ModelRowSorter(M tableModel)
tableModel - public void allRowsChanged()
allRowsChanged in class RowSorter<M extends TableModel>public int convertRowIndexToModel(int index)
convertRowIndexToModel in class RowSorter<M extends TableModel>public int convertRowIndexToView(int index)
convertRowIndexToView in class RowSorter<M extends TableModel>public M getModel()
getModel in class RowSorter<M extends TableModel>public int getModelRowCount()
getModelRowCount in class RowSorter<M extends TableModel>public List<? extends RowSorter.SortKey> getSortKeys()
getSortKeys in class RowSorter<M extends TableModel>public int getViewRowCount()
getViewRowCount in class RowSorter<M extends TableModel>public void modelStructureChanged()
modelStructureChanged in class RowSorter<M extends TableModel>public void rowsDeleted(int firstRow,
int endRow)
rowsDeleted in class RowSorter<M extends TableModel>public void rowsInserted(int firstRow,
int endRow)
rowsInserted in class RowSorter<M extends TableModel>public void rowsUpdated(int firstRow,
int endRow)
rowsUpdated in class RowSorter<M extends TableModel>public void rowsUpdated(int firstRow,
int endRow,
int column)
rowsUpdated in class RowSorter<M extends TableModel>public void toggleSortOrder(int column)
toggleSortOrder in class RowSorter<M extends TableModel>public void setModel(M model)
model - the model to setpublic void setSortKeys(List<? extends RowSorter.SortKey> sortKeys)
setSortKeys in class RowSorter<M extends TableModel>sortKeys - the sortKeys to setCopyright © 2014 JDAL. All Rights Reserved.