public class IndexedTableModel extends Object implements CloseableTableModel, MetaTableModel
Constructor and Description |
---|
IndexedTableModel(TableModel backend) |
Modifier and Type | Method and Description |
---|---|
void |
addTableModelListener(TableModelListener l) |
void |
close()
If this model has disposeable resources assigned, close them or dispose them.
|
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 columnIndex) |
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.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex) |
void |
removeTableModelListener(TableModelListener l) |
void |
setValueAt(Object aValue,
int rowIndex,
int columnIndex) |
String |
toString() |
public IndexedTableModel(TableModel backend)
public void close()
close
in interface CloseableTableModel
public int getRowCount()
getRowCount
in interface TableModel
public int getColumnCount()
getColumnCount
in interface TableModel
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
public Class getColumnClass(int columnIndex)
getColumnClass
in interface TableModel
public boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
public Object getValueAt(int rowIndex, int columnIndex)
getValueAt
in interface TableModel
public void setValueAt(Object aValue, int rowIndex, int columnIndex)
setValueAt
in interface TableModel
public void addTableModelListener(TableModelListener l)
addTableModelListener
in interface TableModel
public void removeTableModelListener(TableModelListener l)
removeTableModelListener
in interface TableModel
public DataAttributes getCellDataAttributes(int row, int column)
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()
isCellDataAttributesSupported
in interface MetaTableModel
public DataAttributes getColumnAttributes(int column)
getColumnAttributes
in interface MetaTableModel
column
- the column.public DataAttributes getTableAttributes()
getTableAttributes
in interface MetaTableModel