Package org.jfree.ui.about
Class ContributorsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.jfree.ui.about.ContributorsTableModel
- All Implemented Interfaces:
Serializable
,TableModel
A table model containing a list of contributors to a project.
Used in the ContributorsPanel class.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
Localised version of the contact column label.private List
Storage for the contributors.private String
Localised version of the name column label.Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
ConstructorsConstructorDescriptionContributorsTableModel
(List contributors) Constructs a ContributorsTableModel. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the number of columns in the table model.getColumnName
(int column) Returns the name of a column in the table model.int
Returns the number of rows in the table model.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 Details
-
contributors
Storage for the contributors. -
nameColumnLabel
Localised version of the name column label. -
contactColumnLabel
Localised version of the contact column label.
-
-
Constructor Details
-
ContributorsTableModel
Constructs a ContributorsTableModel.- Parameters:
contributors
- the contributors.
-
-
Method Details
-
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
Returns the name of a column in the table model.- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
- Parameters:
column
- the column index (zero-based).- Returns:
- the name of the specified column.
-
getValueAt
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.
-