public class LibraryTableModel extends javax.swing.table.AbstractTableModel
Used in the LibraryPanel class.
Constructor and Description |
---|
LibraryTableModel(java.util.List libraries)
Constructs a LibraryTableModel.
|
Modifier and Type | Method and 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.
|
Library[] |
getLibraries()
Returns an array of the libraries in the table.
|
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.
|
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
public LibraryTableModel(java.util.List libraries)
libraries
- the libraries.public int getRowCount()
public int getColumnCount()
public java.lang.String getColumnName(int column)
getColumnName
in interface javax.swing.table.TableModel
getColumnName
in class javax.swing.table.AbstractTableModel
column
- the column index (zero-based).public java.lang.Object getValueAt(int row, int column)
row
- the row index (zero-based).column
- the column index (zero-based).public Library[] getLibraries()