public class JTableAutoModel extends AbstractTableModel
Modifier and Type | Field and Description |
---|---|
protected JTableAutoModelInterface |
table
The table that knows how to model itself.
|
listenerList
Constructor and Description |
---|
JTableAutoModel(JTableAutoModelInterface table)
Constructs an auto model for a JTable.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount() |
String |
getColumnName(int columnIndex) |
int |
getRowCount() |
Object |
getValueAt(int rowIndex,
int columnIndex) |
addTableModelListener, findColumn, fireTableCellUpdated, fireTableDataChanged, fireTableChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
protected JTableAutoModelInterface table
public JTableAutoModel(JTableAutoModelInterface table)
table
- a JTable that knows information about its model.public int getColumnCount()
TableModel.getColumnCount()
public int getRowCount()
TableModel.getRowCount()
public String getColumnName(int columnIndex)
getColumnName
in interface TableModel
getColumnName
in class AbstractTableModel
columnIndex
- a column number.AbstractTableModel.getColumnName(int)
public Object getValueAt(int rowIndex, int columnIndex)
rowIndex
- int a row numbercolumnIndex
- int a column numberTableModel.getValueAt(int, int)
Copyright © 2015. All rights reserved.