java.lang.Object
com.wellnessapp.controller.BaseController
com.wellnessapp.controller.MainController
- All Implemented Interfaces:
IBaseController
Responsible for handling controller logic for the home page view,
First controller to be initialised after successfully logging in.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
FXML Starter method that executes after FXML has been initialised and after class has been initialised.protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
protected void
Methods inherited from class com.wellnessapp.controller.BaseController
getStage, initStage, onMount
-
Constructor Details
-
MainController
public MainController()Constructs a MainController instance. Starts a background worker for hydration management. Is called on class initialisation before FXML is loaded.
-
-
Method Details
-
initialize
public void initialize()FXML Starter method that executes after FXML has been initialised and after class has been initialised. -
onContactusButtonClick
protected void onContactusButtonClick() -
onCancelButtonClick
protected void onCancelButtonClick() -
onAgreeCheckBoxClick
protected void onAgreeCheckBoxClick() -
onWellnessTipsButtonClick
- Throws:
IOException
-
onMoodLogPopupButton
- Throws:
IOException
-
onMoodChartButton
- Throws:
IOException
-
onHydrationButton
- Throws:
IOException
-
onReminderButtonClick
- Throws:
IOException
-
onSettingsButtonClick
- Throws:
IOException
-
onFullExitButton
protected void onFullExitButton()
-