Interface IAVGTableModel

All Superinterfaces:
IClearable
All Known Implementing Classes:
MeterAVGTableModel

public interface IAVGTableModel extends IClearable
Since:
1.0 10 janv. 2009
Author:
Steph GAUDRY
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    The general contract of displayMeter is feeding the model with measures for a meter.
     
    boolean
    If we delete a Measure from the table, it is not deleted from the persistent layer until the save operation is not performed.
    The hasDelatedMeasures 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 measures.
    void
    The general contract of saveAll is that each row is saved or updated into persistent layer.
    void
    setMeter​(Meter meter)
    The general contract of setMeter is storing the meter into the model and calling the displayMeter() method after.

    Methods inherited from interface be.gaudry.model.IClearable

    clear
  • Method Details

    • hasDelatedMeasures

      boolean hasDelatedMeasures()
      If we delete a Measure from the table, it is not deleted from the persistent layer until the save operation is not performed.
      The hasDelatedMeasures 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 measures.
      Returns:
      true if there remains measures to delete
    • saveAll

      void saveAll()
      The general contract of saveAll is that each row is saved or updated into persistent layer. If the hasDelatedMeasures() method returns true, all deleted Measure must be deleted into persistent layer.
      The list of deletedMeasures will be empty after this.
    • getMeter

      Meter getMeter()
      Returns:
      the meter
    • setMeter

      void setMeter(Meter meter)
      The general contract of setMeter is storing the meter into the model and calling the displayMeter() method after.
      Parameters:
      meter - the meter to set
    • displayMeter

      void displayMeter()
      The general contract of displayMeter is feeding the model with measures for a meter.