java.lang.Object
java.util.TimerTask
com.example.brickpaint.AutoSaveManager
- All Implemented Interfaces:
Runnable
Threading implementation of a timer that updates a visual countdown and runs save all when completed
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAutoSaveManager(int numb, ButtonManager main) Default constructor for the AutoSaveManager class -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()The tasks that the Thread shall run, it will count down the timer until it hits 0 updating the label as needed when it reaches 0 it will fire the saveAll method in the controller classMethods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
time
public int time
-
-
Constructor Details
-
AutoSaveManager
Default constructor for the AutoSaveManager class- Parameters:
numb- The time interval in seconds between savesmain- The ButtonManager class that owns this thread
-
-
Method Details