Package be.gaudry.swing.edu.tablemodel
Interface IQuotationsTableModel
- All Superinterfaces:
EventListener
,IClearable
,PropertyChangeListener
- All Known Subinterfaces:
IAVGTableModel
- All Known Implementing Classes:
ExaminationQuotationsTableModel
,PeriodAVGTableModel
,QuotationsTableModel
,StudentAVGTableModel
,StudentQuotationsTableModel
- Since:
- 1.0 22 déc. 2008
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionint
getQuotationMaximum(int row)
Returns theExamination
maximum value (ie.boolean
If we delete aQuotation
from the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedQuotations
methods may be called if we want to set the enable state of a save button, or to inform the client than it remains not deleted quotations.void
saveAll()
The general contract ofsaveAll
is that each row is saved or updated into persistent layer.Methods inherited from interface be.gaudry.model.IClearable
clear
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
-
Method Details
-
getQuotationMaximum
int getQuotationMaximum(int row)Returns theExamination
maximum value (ie. to compute the average)- Parameters:
row
- index of the row containing theQuotation
. This is required for quotations tables, but in some cases the implementation of this does not use the row (in theexamination table
, the maximum value is not stored into a row)- Returns:
- the maximum possible value for a quotation (stored into examination)
-
hasDelatedQuotations
boolean hasDelatedQuotations()If we delete aQuotation
from the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedQuotations
methods may be called if we want to set the enable state of a save button, or to inform the client than it remains not deleted quotations.- Returns:
- true if there remains quotations to delete
-
saveAll
void saveAll()The general contract ofsaveAll
is that each row is saved or updated into persistent layer. If thehasDelatedQuotations()
method returns true, all deletedQuotation
must be deleted into persistent layer.
The list of deletedQuotations will be empty after this.
-