Class MainController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.MainController
Controller for the main page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.void
loadTournament
(javafx.event.ActionEvent actionEvent) Goes to the load tournament page when user clicks on the load tournament buttonvoid
newTournament
(javafx.event.ActionEvent actionEvent) Goes to the new tournament page when the user clicks on the new tournament buttonvoid
reportButtonClick
(javafx.event.Event event) Goes to the report page 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
settingsButtonClick
(javafx.event.Event event) Goes to the settings view when user clicks on the settings buttonvoid
settingsButtonEnter
(javafx.scene.input.KeyEvent event) Enables user to use enter key to go to the settings pagevoid
teamManagement
(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
-