public class SortableTableModel extends AbstractGWTTableModel implements Serializable, TableModelListener
| Modifier and Type | Field and Description |
|---|---|
static int |
ASC |
static int |
DSC |
protected GWTTableModel |
model |
static int |
NO_SORTING |
protected int[] |
rowsOrder |
protected int |
sortedColumn
The sorted column, -1 means no sorting
|
protected int |
sortingOrder
The sorting order, -1 means no sorting
|
listenerList| Constructor and Description |
|---|
SortableTableModel(GWTTableModel model) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount() |
int |
getRowCount() |
int |
getSortedColumn() |
int |
getSortingOrder() |
Object |
getValueAt(int col,
int row) |
protected void |
initRowsOrder() |
protected boolean |
isSortable(int column) |
void |
setSortedColumn(int column) |
void |
setSortedColumn(int column,
int order) |
void |
setSortingOrder(int order) |
void |
tableChanged(TableModelEvent e) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAtprotected GWTTableModel model
protected int sortedColumn
protected int sortingOrder
public static final int NO_SORTING
public static final int ASC
public static final int DSC
protected int[] rowsOrder
public SortableTableModel(GWTTableModel model)
public void tableChanged(TableModelEvent e)
tableChanged in interface TableModelListenerpublic int getRowCount()
getRowCount in interface GWTTableModelpublic int getColumnCount()
getColumnCount in interface GWTTableModelpublic Object getValueAt(int col, int row)
getValueAt in interface GWTTableModelpublic void setSortedColumn(int column)
public void setSortedColumn(int column,
int order)
public int getSortedColumn()
public void setSortingOrder(int order)
public int getSortingOrder()
protected boolean isSortable(int column)
protected void initRowsOrder()
Copyright © 2010-2013 CodeLutin. All Rights Reserved.