public abstract class MetaColumnTableModel extends AbstractTableModel
listenerList| Constructor and Description |
|---|
MetaColumnTableModel(List<MetaColumn> metaList)
Constructs a new MetaColumnTableModel.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSort(MetaColumn sortCol)
Indicates whether the supplied column has a defined sort order.
|
Class<?> |
getColumnClass(int icol) |
int |
getColumnCount() |
List<MetaColumn> |
getColumnList()
Returns the list of columns which provide the data for this model.
|
String |
getColumnName(int icol) |
int |
getListIndex(int irow)
Returns the index in the natural row sequence for a row index in
the table model.
|
abstract int |
getRowCount() |
Object |
getValueAt(int irow,
int icol) |
boolean |
isCellEditable(int irow,
int icol) |
void |
setValueAt(Object value,
int irow,
int icol) |
boolean |
sortRows(MetaColumn sortCol,
boolean isDescending)
Reorders the rows of this table model based on the contents of
one of its columns.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListenerpublic MetaColumnTableModel(List<MetaColumn> metaList)
metaList - a list of MetaColumn objectspublic int getColumnCount()
public abstract int getRowCount()
public Object getValueAt(int irow, int icol)
public void setValueAt(Object value, int irow, int icol)
setValueAt in interface TableModelsetValueAt in class AbstractTableModelpublic Class<?> getColumnClass(int icol)
getColumnClass in interface TableModelgetColumnClass in class AbstractTableModelpublic String getColumnName(int icol)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelpublic boolean isCellEditable(int irow,
int icol)
isCellEditable in interface TableModelisCellEditable in class AbstractTableModelpublic List<MetaColumn> getColumnList()
public boolean canSort(MetaColumn sortCol)
sortCol - column, not nullpublic boolean sortRows(MetaColumn sortCol, boolean isDescending)
sortCol - column to sort on, or null for natural orderingisDescending - false to sort up, true to sort downpublic int getListIndex(int irow)
irow - table row indexCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.