public class IconTableModel extends AbstractTableModel
TableModel
implementation used for demonstration purposes.Constructor and Description |
---|
IconTableModel()
Constructs a new IconTableModel, initially empty.
|
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Class |
getColumnClass(int column)
Returns the class of the specified column.
|
int |
getColumnCount()
Returns the number of columns in the table model.
|
String |
getColumnName(int column)
Returns the name of the specified column.
|
int |
getRowCount()
Returns the number of rows in the table model.
|
Object |
getValueAt(int row,
int column)
Returns the data item at the specified row and column.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public IconTableModel()
public void clear()
public int getRowCount()
public int getColumnCount()
public Object getValueAt(int row, int column)
row
- The row index.column
- The column index.public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- The column index.public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- The column.