Class SettingsController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.SettingsController
Controller for the settings page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
backButtonClick
(javafx.event.Event event) Goes to the last page view when the user clicks on the back buttonvoid
backButtonEnter
(javafx.scene.input.KeyEvent event) Enables user to use enter key to use the back buttonvoid
changeContrast
(javafx.event.ActionEvent actionEvent) Lets the user change contrastvoid
exitButtonClick
(javafx.event.Event event) Goes to the main page view when the user clicks on the home buttonvoid
homeButtonEnter
(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the home pagevoid
Initializes the view on load.void
reportButtonClick
(javafx.event.Event event) Goes to the report page view when the user clicks on the report buttonvoid
reportButtonEnter
(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the report pagevoid
resetSettings
(javafx.event.ActionEvent actionEvent) Lets the user reset settings to the main settingvoid
saveSettings
(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
-