Package edu.pdx.cs410J.di
Class CartTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
edu.pdx.cs410J.di.CartTableModel
- All Implemented Interfaces:
Serializable
,TableModel
A swing table mode for the shopping cart
- See Also:
-
Field Summary
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
getColumnName
(int index) int
double
getTotal()
Returns the total amount of the items in the cartgetValueAt
(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
-
Constructor Details
-
CartTableModel
public CartTableModel()
-
-
Method Details
-
getRowCount
-
getColumnCount
-
getValueAt
-
addBook
-
getColumnName
- Specified by:
getColumnName
in interfaceTableModel
- Overrides:
getColumnName
in classAbstractTableModel
-
getTotal
Returns the total amount of the items in the cart
-