Package be.gaudry.swing.brolmeter.avg
Interface IAVGTableModel
- All Superinterfaces:
IClearable
- All Known Implementing Classes:
MeterAVGTableModel
- Since:
- 1.0 10 janv. 2009
- Author:
- Steph GAUDRY
-
Method Summary
Modifier and TypeMethodDescriptionvoid
getMeter()
boolean
If we delete aMeasure
from the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedMeasures
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
saveAll()
The general contract ofsaveAll
is that each row is saved or updated into persistent layer.void
The general contract ofsetMeter
is storing themeter
into the model and calling thedisplayMeter()
method after.Methods inherited from interface be.gaudry.model.IClearable
clear
-
Method Details
-
hasDelatedMeasures
boolean hasDelatedMeasures()If we delete aMeasure
from the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedMeasures
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 ofsaveAll
is that each row is saved or updated into persistent layer. If thehasDelatedMeasures()
method returns true, all deletedMeasure
must be deleted into persistent layer.
The list of deletedMeasures will be empty after this. -
getMeter
Meter getMeter()- Returns:
- the meter
-
setMeter
The general contract ofsetMeter
is storing themeter
into the model and calling thedisplayMeter()
method after.- Parameters:
meter
- the meter to set
-
displayMeter
void displayMeter()
-