public class SortFilterModel extends AbstractFilterModel implements TableModelListener, SortableTableModel
modellistenerListASC, DESC, NONE| Constructor and Description |
|---|
SortFilterModel(TableModel tm) |
| Modifier and Type | Method and Description |
|---|---|
void |
addMouseListener(JTable table) |
int |
getSortedColumnNumber() |
String |
getSortedDirection(int columnNumber) |
Object |
getValueAt(int r,
int c) |
boolean |
isCellEditable(int r,
int c) |
protected void |
refresh() |
void |
removeRow(int rowNum) |
void |
setModel(TableModel tm) |
void |
setValueAt(Object aValue,
int r,
int c) |
protected void |
sort(int c) |
void |
sort(int columnNumber,
String direction) |
void |
tableChanged(TableModelEvent e)
Implements the TableModelListener interface to receive notifications of * changes to the table model.
|
addRow, getColumnClass, getColumnCount, getColumnName, getModel, getRowCount, removeAllRowsaddTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddTableModelListener, getColumnClass, getColumnCount, getColumnName, getRowCount, removeTableModelListenerpublic SortFilterModel(TableModel tm)
protected void refresh()
protected void sort(int c)
public void addMouseListener(JTable table)
public Object getValueAt(int r, int c)
getValueAt in interface TableModelgetValueAt in class AbstractFilterModelpublic boolean isCellEditable(int r,
int c)
isCellEditable in interface TableModelisCellEditable in class AbstractFilterModelpublic void setValueAt(Object aValue, int r, int c)
setValueAt in interface TableModelsetValueAt in class AbstractFilterModelpublic void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerpublic void removeRow(int rowNum)
throws ArrayIndexOutOfBoundsException,
IllegalStateException
removeRow in class AbstractFilterModelArrayIndexOutOfBoundsExceptionIllegalStateExceptionpublic void setModel(TableModel tm)
setModel in class AbstractFilterModelpublic int getSortedColumnNumber()
getSortedColumnNumber in interface SortableTableModelpublic void sort(int columnNumber,
String direction)
sort in interface SortableTableModelpublic String getSortedDirection(int columnNumber)
getSortedDirection in interface SortableTableModelCopyright © 2013 Atlassian. All Rights Reserved.