Class TeamManagementController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.TeamManagementController
Controller for the team management page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPlayer(javafx.event.ActionEvent actionEvent) Goes to the new player view when clicking on the add player buttonvoidaddTeam(javafx.event.ActionEvent actionEvent) Goes to the new team view when clicking on the add team buttonvoidbackButtonClick(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 buttonvoideditExistingPlayer(javafx.event.ActionEvent actionEvent) Goes to the edit player view when clicking on the edit player buttonvoideditTeam(javafx.event.ActionEvent actionEvent) Goes to the edit team view when clicking on the edit team buttonvoidexitButtonClick(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 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 page
-
Constructor Details
-
TeamManagementController
public TeamManagementController()
-
-
Method Details
-
initialize
public void initialize()Initializes the view on load. -
editExistingPlayer
Goes to the edit player view when clicking on the edit player button- Parameters:
actionEvent- Click Event- Throws:
IOException- if an error occurs
-
addPlayer
Goes to the new player view when clicking on the add player button- Parameters:
actionEvent- Click Event- Throws:
IOException- if an error occurs
-
addTeam
Goes to the new team view when clicking on the add team button- Parameters:
actionEvent- Click Event- Throws:
IOException- if an error occurs
-
editTeam
Goes to the edit team view when clicking on the edit team button- Parameters:
actionEvent- 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
-
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
-
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
-
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
-