Class NoticeTask

java.lang.Object
java.util.TimerTask
com.wellnessapp.model.notice.NoticeTask
All Implemented Interfaces:
Runnable

public class NoticeTask extends TimerTask
NoticeTask is a TimerTask implementation that displays notifications based on a NoticeBO.
See Also:
  • Constructor Details

    • NoticeTask

      public NoticeTask(NoticeBO notice)
      Constructs a NoticeTask with the provided NoticeBO.
      Parameters:
      notice - The NoticeBO containing title and text for the notification.
  • Method Details

    • run

      public void run()
      Runs the task, displaying a notification with the notice's title and text. Uses controlFX/JavaFX notifications if available, falls back to system tray notifications if not.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask