org.jfree.ui.about

Class LibraryTableModel

public class LibraryTableModel extends AbstractTableModel

A table model containing a list of libraries used in a project.

Used in the LibraryPanel class.

Author: David Gilbert

Constructor Summary
LibraryTableModel(List libraries)
Constructs a LibraryTableModel.
Method Summary
intgetColumnCount()
Returns the number of columns in the table model.
StringgetColumnName(int column)
Returns the name of a column in the table model.
Library[]getLibraries()
intgetRowCount()
Returns the number of rows in the table model.
ObjectgetValueAt(int row, int column)
Returns the value for a cell in the table model.

Constructor Detail

LibraryTableModel

public LibraryTableModel(List libraries)
Constructs a LibraryTableModel.

Parameters: libraries the libraries.

Method Detail

getColumnCount

public int getColumnCount()
Returns the number of columns in the table model. In this case, there are always four columns (name, version, licence and other info).

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.

getLibraries

public Library[] getLibraries()

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.