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 TypeMethodDescriptionvoidgetMeter()booleanIf we delete aMeasurefrom the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedMeasuresmethods 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.voidsaveAll()The general contract ofsaveAllis that each row is saved or updated into persistent layer.voidThe general contract ofsetMeteris storing themeterinto the model and calling thedisplayMeter()method after.Methods inherited from interface be.gaudry.model.IClearable
clear
-
Method Details
-
hasDelatedMeasures
boolean hasDelatedMeasures()If we delete aMeasurefrom the table, it is not deleted from the persistent layer until the save operation is not performed.
ThehasDelatedMeasuresmethods 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 ofsaveAllis that each row is saved or updated into persistent layer. If thehasDelatedMeasures()method returns true, all deletedMeasuremust be deleted into persistent layer.
The list of deletedMeasures will be empty after this. -
getMeter
Meter getMeter()- Returns:
- the meter
-
setMeter
The general contract ofsetMeteris storing themeterinto the model and calling thedisplayMeter()method after.- Parameters:
meter- the meter to set
-
displayMeter
void displayMeter()
-