Class StudentQuotationsTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
javax.swing.table.DefaultTableModel
be.gaudry.swing.edu.tablemodel.QuotationsTableModel
be.gaudry.swing.edu.student.course.StudentQuotationsTableModel
- All Implemented Interfaces:
IClearable
,IQuotationsTableModel
,PropertyChangeListener
,Serializable
,EventListener
,TableModel
- Since:
- 1.0 Dec 22, 2008
- Author:
- Steph GAUDRY
- See Also:
- Serialized Form
-
Nested Class Summary
Nested classes/interfaces inherited from class be.gaudry.swing.edu.tablemodel.QuotationsTableModel
QuotationsTableModel.EModelStructure
-
Field Summary
Fields inherited from class be.gaudry.swing.edu.tablemodel.QuotationsTableModel
course, deletedQuotations
Fields inherited from class javax.swing.table.DefaultTableModel
columnIdentifiers, dataVector
Fields inherited from class javax.swing.table.AbstractTableModel
listenerList
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
saveAll()
The general contract ofsaveAll
is that each row is saved or updated into persistent layer.void
setStudent(Student student)
Methods inherited from class be.gaudry.swing.edu.tablemodel.QuotationsTableModel
add, add, clear, getColumnClass, getColumnNames, getCourse, getQuotation, getQuotationMaximum, getQuotations, hasDelatedQuotations, isCellEditable, propertyChange, removeRow, setCourse
Methods inherited from class javax.swing.table.DefaultTableModel
addColumn, addColumn, addColumn, addRow, addRow, convertToVector, convertToVector, getColumnCount, getColumnName, getDataVector, getRowCount, getValueAt, insertRow, insertRow, moveRow, newDataAvailable, newRowsAdded, rowsRemoved, setColumnCount, setColumnIdentifiers, setColumnIdentifiers, setDataVector, setDataVector, setNumRows, setRowCount, setValueAt
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener
-
Field Details
-
student
-
-
Constructor Details
-
StudentQuotationsTableModel
public StudentQuotationsTableModel()
-
-
Method Details
-
saveAll
public void saveAll()Description copied from interface:IQuotationsTableModel
The general contract ofsaveAll
is that each row is saved or updated into persistent layer. If theIQuotationsTableModel.hasDelatedQuotations()
method returns true, all deletedQuotation
must be deleted into persistent layer.
The list of deletedQuotations will be empty after this. -
getStudent
- Returns:
- the student
-
setStudent
- Parameters:
student
- the student to set
-
displayCourse
public void displayCourse()
-