java.lang.Object
com.example.wellbeing_project.HomeController
Controller class for the home view.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Interface to interact with the windows User32 library. -
Field Summary
Modifier and TypeFieldDescriptionjavafx.scene.control.TextField
javafx.scene.control.TextField
javafx.scene.control.TextField
javafx.animation.Timeline
javafx.scene.control.Label
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the title of the active window.void
Initializes the controller, setting up the 15-minute interval alerts.void
Starts the countdown timer based on user inputs.
-
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
Retrieves the title of the active window.- Returns:
- The title of the active window.
-