java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.SettingsController

public class SettingsController extends Object
Controller for the settings page
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backButtonClick(javafx.event.Event event)
    Goes to the last page view when the user clicks on the back button
    void
    backButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to use the back button
    void
    changeContrast(javafx.event.ActionEvent actionEvent)
    Lets the user change contrast
    void
    exitButtonClick(javafx.event.Event event)
    Goes to the main page view when the user clicks on the home button
    void
    homeButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the home page
    void
    Initializes the view on load.
    void
    reportButtonClick(javafx.event.Event event)
    Goes to the report page view when the user clicks on the report button
    void
    reportButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the report page
    void
    resetSettings(javafx.event.ActionEvent actionEvent)
    Lets the user reset settings to the main setting
    void
    saveSettings(javafx.event.ActionEvent actionEvent)
    Lets the user save their changes and return to home page when clicking the save button

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SettingsController

      public SettingsController()
  • Method Details

    • initialize

      public void initialize()
      Initializes the view on load.
    • resetSettings

      public void resetSettings(javafx.event.ActionEvent actionEvent)
      Lets the user reset settings to the main setting
      Parameters:
      actionEvent - Click Event
    • exitButtonClick

      public void exitButtonClick(javafx.event.Event event) throws IOException
      Goes to the main page view when the user clicks on the home button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • saveSettings

      public void saveSettings(javafx.event.ActionEvent actionEvent) throws IOException
      Lets the user save their changes and return to home page when clicking the save button
      Parameters:
      actionEvent -
      Throws:
      IOException
    • reportButtonClick

      public void reportButtonClick(javafx.event.Event event) throws IOException
      Goes to the report page view when the user clicks on the report button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • changeContrast

      public void changeContrast(javafx.event.ActionEvent actionEvent)
      Lets the user change contrast
      Parameters:
      actionEvent - Click Event
    • backButtonClick

      public void backButtonClick(javafx.event.Event event) throws IOException
      Goes to the last page view when the user clicks on the back button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • reportButtonEnter

      public void reportButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the report page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • backButtonEnter

      public void backButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to use the back button
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • homeButtonEnter

      public void homeButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the home page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs