org.jfree.ui.about

Class ContributorsTableModel


public class ContributorsTableModel
extends AbstractTableModel

A table model containing a list of contributors to a project.

Used in the ContributorsPanel class.

Author:
David Gilbert

Constructor Summary

ContributorsTableModel(List contributors)
Constructs a ContributorsTableModel.

Method Summary

int
getColumnCount()
Returns the number of columns in the table model.
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.
Object
getValueAt(int row, int column)
Returns the value for a cell in the table model.

Constructor Details

ContributorsTableModel

public ContributorsTableModel(List contributors)
Constructs a ContributorsTableModel.
Parameters:
contributors - the contributors.

Method Details

getColumnCount

public int getColumnCount()
Returns the number of columns in the table model. In this case, there are always two columns (name and e-mail address).
Returns:
The number of columns in the table model.

getColumnName

public String getColumnName(int column)
Returns the name of a column in the table model.
Parameters:
column - the column index (zero-based).
Returns:
the name of the specified column.

getRowCount

public int getRowCount()
Returns the number of rows in the table model.
Returns:
The number of rows.

getValueAt

public Object getValueAt(int row,
                         int column)
Returns the value for a cell in the table model.
Parameters:
row - the row index (zero-based).
column - the column index (zero-based).
Returns:
the value.