Class MainController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.MainController
Controller for the main page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.voidloadTournament(javafx.event.ActionEvent actionEvent) Goes to the load tournament page when user clicks on the load tournament buttonvoidnewTournament(javafx.event.ActionEvent actionEvent) Goes to the new tournament page when the user clicks on the new tournament buttonvoidreportButtonClick(javafx.event.Event event) Goes to the report page when the user clicks on the report buttonvoidreportButtonEnter(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the report pagevoidsettingsButtonClick(javafx.event.Event event) Goes to the settings view when user clicks on the settings buttonvoidsettingsButtonEnter(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the settings pagevoidteamManagement(javafx.event.ActionEvent actionEvent) Goes to the team management page when the user clicks on the team management button
-
Constructor Details
-
MainController
public MainController()
-
-
Method Details
-
initialize
Deprecated.Initializes the view on load. -
settingsButtonClick
Goes to the settings view when user clicks on the settings button- Parameters:
event- Click event- Throws:
IOException- if an error occurs
-
loadTournament
Goes to the load tournament page when user clicks on the load tournament button- Parameters:
actionEvent- Click Event- Throws:
IOException- if an error occurs
-
teamManagement
Goes to the team management page when the user clicks on the team management button- Parameters:
actionEvent- Click event- Throws:
IOException- if an error occurs
-
reportButtonClick
Goes to the report page when the user clicks on the report button- Parameters:
event- Click event- Throws:
IOException- if an error occurs
-
newTournament
Goes to the new tournament page when the user clicks on the new tournament button- Parameters:
actionEvent- Click event- Throws:
IOException- if an error occurs
-
settingsButtonEnter
Enables user to use enter key to go to the settings page- Parameters:
event- KeyEvent- 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
-