|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnextapp.echo2.app.table.AbstractTableModel
nextapp.echo2.app.table.DefaultTableModel
echopointng.table.DefaultSortableTableModel
public class DefaultSortableTableModel
The default implementation for the SortableTableModel
interface. The sort algorithm is deferred to Collections.sort()
| Constructor Summary | |
|---|---|
DefaultSortableTableModel(TableColumnModel columnModel)
|
|
| Method Summary | |
|---|---|
int |
getCurrentSortColumn()
Returns the currently sorted column number. |
protected java.util.List |
getRows()
Creates a List of Lists based on the data backing this model in the superclass. |
boolean |
isCurrentSortAscending()
Returns true if this model is currently being sorted ascending |
protected void |
setRows(java.util.List rows)
Synchronizes the given List of Lists to the data backing this model in the superclass. |
void |
sortByColumn(int column,
boolean ascending)
Sorts the data backing this model based on the given column and ascending flag. |
| Methods inherited from class nextapp.echo2.app.table.DefaultTableModel |
|---|
addRow, deleteRow, getColumnCount, getColumnName, getRowCount, getValueAt, insertRow, setColumnCount, setColumnName, setRowCount, setValueAt |
| Methods inherited from class nextapp.echo2.app.table.AbstractTableModel |
|---|
addTableModelListener, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getEventListenerList, removeTableModelListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nextapp.echo2.app.table.TableModel |
|---|
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, getValueAt, removeTableModelListener |
| Constructor Detail |
|---|
public DefaultSortableTableModel(TableColumnModel columnModel)
| Method Detail |
|---|
public void sortByColumn(int column,
boolean ascending)
SortableTableModel
sortByColumn in interface SortableTableModelcolumn - the column to sort byascending - sort the column ascending or notSortableTableModel.sortByColumn(int, boolean)protected java.util.List getRows()
protected void setRows(java.util.List rows)
public int getCurrentSortColumn()
SortableTableModel
getCurrentSortColumn in interface SortableTableModelSortableTableModel.getCurrentSortColumn()public boolean isCurrentSortAscending()
SortableTableModel
isCurrentSortAscending in interface SortableTableModelSortableTableModel.isCurrentSortAscending()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||