Class SettingsController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.SettingsController
Controller for the settings page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackButtonClick(javafx.event.Event event) Goes to the last page view when the user clicks on the back buttonvoidbackButtonEnter(javafx.scene.input.KeyEvent event) Enables user to use enter key to use the back buttonvoidchangeContrast(javafx.event.ActionEvent actionEvent) Lets the user change contrastvoidexitButtonClick(javafx.event.Event event) Goes to the main page view when the user clicks on the home buttonvoidhomeButtonEnter(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the home pagevoidInitializes the view on load.voidreportButtonClick(javafx.event.Event event) Goes to the report page view when the user clicks on the report buttonvoidreportButtonEnter(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the report pagevoidresetSettings(javafx.event.ActionEvent actionEvent) Lets the user reset settings to the main settingvoidsaveSettings(javafx.event.ActionEvent actionEvent) Lets the user save their changes and return to home page when clicking the save button
-
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
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
Lets the user save their changes and return to home page when clicking the save button- Parameters:
actionEvent-- Throws:
IOException
-
reportButtonClick
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
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
Enables user to use enter key to go to the report page- Parameters:
event- KeyEvent- Throws:
IOException- if an error occurs
-
backButtonEnter
Enables user to use enter key to use the back button- Parameters:
event- KeyEvent- Throws:
IOException- if an error occurs
-
homeButtonEnter
Enables user to use enter key to go to the home page- Parameters:
event- KeyEvent- Throws:
IOException- if an error occurs
-