Package whiteboard.time
Class TimerTask
java.lang.Object
whiteboard.time.TimerTask
- All Implemented Interfaces:
java.lang.Runnable
public class TimerTask
extends java.lang.Object
implements java.lang.Runnable
-
Field Summary
Fields Modifier and Type Field Description (package private) ConfigconfigUpdates configuration during execution(package private) java.text.DateFormatdateFormatformats date object to specific format(package private) ControllerguiControllerUsed to issue update to controller(package private) java.util.DatetodayHolds the days date -
Constructor Summary
Constructors Constructor Description TimerTask(Controller guiController, Config config)Initialize -
Method Summary
Modifier and Type Method Description voidrun()Update bits of application when timer elapses
-
Field Details
-
today
java.util.Date todayHolds the days date -
dateFormat
java.text.DateFormat dateFormatformats date object to specific format -
config
Config configUpdates configuration during execution -
guiController
Controller guiControllerUsed to issue update to controller
-
-
Constructor Details
-
TimerTask
Initialize
-
-
Method Details
-
run
public void run()Update bits of application when timer elapses- Specified by:
runin interfacejava.lang.Runnable
-