Interface IQuotationsTableModel

All Superinterfaces:
EventListener, IClearable, PropertyChangeListener
All Known Subinterfaces:
IAVGTableModel
All Known Implementing Classes:
ExaminationQuotationsTableModel, PeriodAVGTableModel, QuotationsTableModel, StudentAVGTableModel, StudentQuotationsTableModel

public interface IQuotationsTableModel extends IClearable, PropertyChangeListener
Since:
1.0 22 déc. 2008
Author:
Steph GAUDRY
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    getQuotationMaximum​(int row)
    Returns the Examination maximum value (ie.
    boolean
    If we delete a Quotation from the table, it is not deleted from the persistent layer until the save operation is not performed.
    The hasDelatedQuotations 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
    The general contract of saveAll 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 the Examination maximum value (ie. to compute the average)
      Parameters:
      row - index of the row containing the Quotation. This is required for quotations tables, but in some cases the implementation of this does not use the row (in the examination 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 a Quotation from the table, it is not deleted from the persistent layer until the save operation is not performed.
      The hasDelatedQuotations 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 of saveAll is that each row is saved or updated into persistent layer. If the hasDelatedQuotations() method returns true, all deleted Quotation must be deleted into persistent layer.
      The list of deletedQuotations will be empty after this.