Package org.jfree.ui.about
Class ContributorsTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- org.jfree.ui.about.ContributorsTableModel
-
- All Implemented Interfaces:
java.io.Serializable
,javax.swing.table.TableModel
public class ContributorsTableModel extends javax.swing.table.AbstractTableModel
A table model containing a list of contributors to a project.Used in the ContributorsPanel class.
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
contactColumnLabel
Localised version of the contact column label.private java.util.List
contributors
Storage for the contributors.private java.lang.String
nameColumnLabel
Localised version of the name column label.
-
Constructor Summary
Constructors Constructor Description ContributorsTableModel(java.util.List contributors)
Constructs a ContributorsTableModel.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Field Detail
-
contributors
private java.util.List contributors
Storage for the contributors.
-
nameColumnLabel
private java.lang.String nameColumnLabel
Localised version of the name column label.
-
contactColumnLabel
private java.lang.String contactColumnLabel
Localised version of the contact column label.
-
-
Method Detail
-
getRowCount
public int getRowCount()
Returns the number of rows in the table model.- Returns:
- The number of rows.
-
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 java.lang.String getColumnName(int column)
Returns the name of a column in the table model.- Specified by:
getColumnName
in interfacejavax.swing.table.TableModel
- Overrides:
getColumnName
in classjavax.swing.table.AbstractTableModel
- Parameters:
column
- the column index (zero-based).- Returns:
- the name of the specified column.
-
getValueAt
public java.lang.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.
-
-