| java.lang.Object javax.swing.table.AbstractTableModel org.jfree.ui.about.LibraryTableModel
LibraryTableModel | public class LibraryTableModel extends AbstractTableModel (Code) | | A table model containing a list of libraries used in a project.
Used in the LibraryPanel class.
author: David Gilbert |
Method Summary | |
public int | getColumnCount() Returns the number of columns in the table model. | public String | getColumnName(int column) Returns the name of a column in the table model.
Parameters: column - the column index (zero-based). | public Library[] | getLibraries() | public int | getRowCount() Returns the number of rows in the table model. | public Object | getValueAt(int row, int column) Returns the value for a cell in the table model.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). |
LibraryTableModel | public LibraryTableModel(List libraries)(Code) | | Constructs a LibraryTableModel.
Parameters: libraries - the libraries. |
getColumnCount | public int getColumnCount()(Code) | | Returns the number of columns in the table model. In this case, there are always four
columns (name, version, licence and other info).
the number of columns in the table model. |
getColumnName | public String getColumnName(int column)(Code) | | Returns the name of a column in the table model.
Parameters: column - the column index (zero-based). the name of the specified column. |
getRowCount | public int getRowCount()(Code) | | Returns the number of rows in the table model.
the number of rows. |
getValueAt | public Object getValueAt(int row, int column)(Code) | | Returns the value for a cell in the table model.
Parameters: row - the row index (zero-based). Parameters: column - the column index (zero-based). the value. |
|
|