Class TournamentOverviewController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.TournamentOverviewController
Controller for the tournament-overview 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
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
Deprecated.void
loadMatchHistory
(int n) Goes to the match report of the selected matchvoid
nextMatch
(javafx.event.ActionEvent actionEvent) Goes to the next match page when the user clicks on the next match buttonvoid
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
save
(javafx.event.ActionEvent actionEvent) Lets the user save the tournament when clicking the save buttonvoid
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 page
-
Constructor Details
-
TournamentOverviewController
public TournamentOverviewController()
-
-
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
-
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
-
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
-
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
-
nextMatch
Goes to the next match page when the user clicks on the next match button- Parameters:
actionEvent
-- Throws:
IOException
-
loadMatchHistory
Goes to the match report of the selected match- Parameters:
n
- is the index in the register of the selected match- Throws:
IOException
- if an error occurs
-
save
public void save(javafx.event.ActionEvent actionEvent) Lets the user save the tournament when clicking the save button- Parameters:
actionEvent
- Click Event
-
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
-
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
-