Package edu.pdx.cs410J.di
Class BookInventoryTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.pdx.cs410J.di.BookInventoryTableModel
- All Implemented Interfaces:
Serializable
,TableModel
- Direct Known Subclasses:
CheckoutInventoryTableModel
A swing table model that lists the contents of a
BookInventory
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecrementInventry
(int row) getBook
(int i) int
getColumnName
(int column) int
getValueAt
(int row, int column) 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
-
inventory
-
-
Constructor Details
-
BookInventoryTableModel
-
-
Method Details
-
getRowCount
-
getColumnCount
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getValueAt
-
getBook
-
decrementInventry
-