public class CachableTableModel extends AbstractTableModel implements MetaTableModel
Constructor and Description |
---|
CachableTableModel(TableModel model) |
Modifier and Type | Method and Description |
---|---|
DataAttributes |
getCellDataAttributes(int row,
int column)
Returns the meta-attribute as Java-Object.
|
DataAttributes |
getColumnAttributes(int column)
Returns the column-level attributes for the given column.
|
Class |
getColumnClass(int columnIndex) |
int |
getColumnCount() |
String |
getColumnName(int column) |
int |
getRowCount() |
DataAttributes |
getTableAttributes()
Returns table-wide attributes.
|
Object |
getValueAt(int rowIndex,
int columnIndex) |
boolean |
isCellDataAttributesSupported()
Checks, whether cell-data attributes are supported by this tablemodel implementation.
|
static boolean |
isSafeToCache(TableModel model) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addTableModelListener, isCellEditable, removeTableModelListener, setValueAt
public CachableTableModel(TableModel model)
public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
public DataAttributes getCellDataAttributes(int row, int column)
MetaTableModel
getCellDataAttributes
in interface MetaTableModel
row
- the row of the cell for which the meta-data is queried.column
- the index of the column for which the meta-data is queried.public boolean isCellDataAttributesSupported()
MetaTableModel
isCellDataAttributesSupported
in interface MetaTableModel
public DataAttributes getColumnAttributes(int column)
MetaTableModel
getColumnAttributes
in interface MetaTableModel
column
- the column.public DataAttributes getTableAttributes()
MetaTableModel
getTableAttributes
in interface MetaTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public static boolean isSafeToCache(TableModel model)