public class ContributorsTableModel extends javax.swing.table.AbstractTableModel
Used in the ContributorsPanel class.
Constructor and Description |
---|
ContributorsTableModel(java.util.List contributors)
Constructs a ContributorsTableModel.
|
Modifier and Type | Method and Description |
---|---|
int |
getColumnCount()
Returns the number of columns in the table model.
|
java.lang.String |
getColumnName(int column)
Returns the name of a column in the table model.
|
int |
getRowCount()
Returns the number of rows in the table model.
|
java.lang.Object |
getValueAt(int row,
int column)
Returns the value for a cell in the table model.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public ContributorsTableModel(java.util.List contributors)
contributors
- the contributors.public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index (zero-based).public java.lang.Object getValueAt(int row, int column)
row
- the row index (zero-based).column
- the column index (zero-based).