T - The type of the object representing one row of the table
public interface SimpleTableFormat<T>
A class for use with SimpleTableModel to represent a list or array of elements in a table. The SimpleTableModel class maps the elements in the list or array to the rows of the table. A SimpleTableFormat class then maps aspects of each element to the columns in the table
| Modifier and Type | Method and Description | 
|---|---|
java.lang.Class<?> | 
getColumnClass(int columnIndex)
Returns the most specific superclass for all the cell values in the column. 
 | 
int | 
getColumnCount()
Returns the number of columns in the model. 
 | 
java.lang.String | 
getColumnName(int columnIndex)
Returns the name of the column at  
columnIndex. | 
java.lang.Object | 
getValueAt(T rowValue, int columnIndex)
Returns the value for the cell at  
columnIndex and rowIndex. | 
boolean | 
isCellEditable(T rowValue, int columnIndex)
Returns true if the cell at  
rowIndex and columnIndex is editable. | 
void | 
setValueAt(T rowValue, java.lang.Object value, int columnIndex)
Sets the value in the cell at  
columnIndex and rowIndex to aValue. | 
int getColumnCount()
JTable uses this method to determine how many columns it should create and display by default.java.lang.Class<?> getColumnClass(int columnIndex)
JTable to set up a default renderer and editor for the column.columnIndex - the index of the columnjava.lang.String getColumnName(int columnIndex)
columnIndex. This is used to initialize the table's column header name. Note: this name does not need to be unique; two columns in a table can have the same name.columnIndex - the index of the columnjava.lang.Object getValueAt(T rowValue, int columnIndex)
columnIndex and rowIndex.rowValue - the object representing the rowcolumnIndex - the column whose value is to be queriedvoid setValueAt(T rowValue, java.lang.Object value, int columnIndex)
columnIndex and rowIndex to aValue.rowValue - the object representing the rowvalue - the new valuecolumnIndex - the column whose value is to be changedboolean isCellEditable(T rowValue, int columnIndex)
rowIndex and columnIndex is editable. Otherwise, setValueAt on the cell will not change the value of that cell.rowValue - the object representing the rowcolumnIndex - the column being queried