public class LibraryTableModel extends AbstractTableModel
Used in the LibraryPanel class.
listenerList| Constructor and Description |
|---|
LibraryTableModel(List libraries)
Constructs a LibraryTableModel.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnCount()
Returns the number of columns in the table model.
|
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.
|
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, setValueAtpublic LibraryTableModel(List libraries)
libraries - the libraries.public int getRowCount()
public int getColumnCount()
public String getColumnName(int column)
getColumnName in interface TableModelgetColumnName in class AbstractTableModelcolumn - the column index (zero-based).public Object getValueAt(int row, int column)
row - the row index (zero-based).column - the column index (zero-based).public Library[] getLibraries()
Copyright © 2009-2012 jtstand.com. All Rights Reserved.