Class MainController

java.lang.Object
com.wellnessapp.controller.BaseController
com.wellnessapp.controller.MainController
All Implemented Interfaces:
IBaseController

public class MainController extends BaseController
Responsible for handling controller logic for the home page view, First controller to be initialised after successfully logging in.
  • 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

      protected void onWellnessTipsButtonClick() throws IOException
      Throws:
      IOException
    • onMoodLogPopupButton

      protected void onMoodLogPopupButton() throws IOException
      Throws:
      IOException
    • onMoodChartButton

      protected void onMoodChartButton() throws IOException
      Throws:
      IOException
    • onHydrationButton

      protected void onHydrationButton() throws IOException
      Throws:
      IOException
    • onReminderButtonClick

      protected void onReminderButtonClick() throws IOException
      Throws:
      IOException
    • onSettingsButtonClick

      protected void onSettingsButtonClick() throws IOException
      Throws:
      IOException
    • onFullExitButton

      protected void onFullExitButton()