Class HomeController

java.lang.Object
com.example.wellbeing_project.HomeController

public class HomeController extends Object
Controller class for the home view.
  • Field Details

    • timeline

      public javafx.animation.Timeline timeline
    • timeRemainingLabel

      public javafx.scene.control.Label timeRemainingLabel
    • hoursField

      public javafx.scene.control.TextField hoursField
    • minutesField

      public javafx.scene.control.TextField minutesField
    • secondsField

      public javafx.scene.control.TextField secondsField
  • Constructor Details

    • HomeController

      public HomeController()
  • Method Details

    • startTimer

      public void startTimer()
      Starts the countdown timer based on user inputs.
    • initialize

      public void initialize()
      Initializes the controller, setting up the 15-minute interval alerts.
    • getActiveWindowTitle

      public String getActiveWindowTitle()
      Retrieves the title of the active window.
      Returns:
      The title of the active window.