public class HugeLetterAndColorTableModel extends AbstractTableModel
Constructor and Description |
---|
HugeLetterAndColorTableModel()
Default constructor - builds a sample data source.
|
Modifier and Type | Method and Description |
---|---|
Class |
getColumnClass(int column)
Returns the class of the data in 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 value at the specified row and column.
|
void |
setRowCount(int rowCount) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public HugeLetterAndColorTableModel()
public int getRowCount()
public void setRowCount(int rowCount)
public int getColumnCount()
public Class getColumnClass(int column)
getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
column
- the column (zero-based index).public String getColumnName(int column)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column (zero-based index).public Object getValueAt(int row, int column)
row
- the row index (zero based).column
- the column index (zero based).