public class JoiningTableModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
static String |
TABLE_PREFIX_COLUMN |
Constructor and Description |
---|
JoiningTableModel() |
Modifier and Type | Method and Description |
---|---|
void |
addTableModel(String prefix,
TableModel model) |
Class |
getColumnClass(int columnIndex)
Returns
Object.class regardless of columnIndex . |
int |
getColumnCount()
Returns the number of columns managed by the data source object.
|
String |
getColumnName(int column)
Returns a default name for the column using spreadsheet conventions: A, B, C, ...
|
int |
getRowCount()
Returns the number of records managed by the data source object.
|
TableModel |
getTableModel(int pos) |
int |
getTableModelCount() |
Object |
getValueAt(int rowIndex,
int columnIndex)
Returns an attribute value for the cell at columnIndex and rowIndex.
|
boolean |
isCellEditable(int rowIndex,
int columnIndex)
Returns false.
|
void |
removeTableModel(TableModel model) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAt
public static final String TABLE_PREFIX_COLUMN
public void addTableModel(String prefix, TableModel model)
public void removeTableModel(TableModel model)
public int getTableModelCount()
public TableModel getTableModel(int pos)
public Class getColumnClass(int columnIndex)
Object.class
regardless of columnIndex
.getColumnClass
in interface TableModel
getColumnClass
in class AbstractTableModel
columnIndex
- the column being queriedpublic String getColumnName(int column)
column
cannot be found, returns an empty string.getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
column
- the column being queriedcolumn
public final boolean isCellEditable(int rowIndex, int columnIndex)
isCellEditable
in interface TableModel
isCellEditable
in class AbstractTableModel
rowIndex
- the row being queriedcolumnIndex
- the column being queriedpublic int getColumnCount()
getRowCount()
public int getRowCount()
getColumnCount()
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- the row whose value is to be looked upcolumnIndex
- the column whose value is to be looked up