Class EditPlayerController
java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.EditPlayerController
Controller for the edit player page
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbackButtonClick(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 buttonvoiddeletePlayer(javafx.event.ActionEvent actionEvent) Deletes selected player when the user clicks on the delete player buttonvoiddiscardChanges(javafx.event.ActionEvent actionEvent) Goes to the team management page view when the user clicks on the discard changes 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 pagevoidDeprecated.voidplayerSelected(javafx.event.ActionEvent actionEvent) Enables input when a player is selectedvoidreportButtonClick(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 pagevoidsaveChanges(javafx.event.ActionEvent actionEvent) Saves changes when the user clicks on the save buttonvoidsettingsButtonClick(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 pagevoidteamSelected(javafx.event.ActionEvent actionEvent) Enables to select a player when a team is selected
-
Constructor Details
-
EditPlayerController
public EditPlayerController()
-
-
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
-
discardChanges
Goes to the team management page view when the user clicks on the discard changes button- Parameters:
actionEvent- Click event- Throws:
IOException- if an error occurs
-
saveChanges
Saves changes when the user clicks on the save button- Parameters:
actionEvent- Click event- Throws:
IOException- if an error occurs
-
playerSelected
public void playerSelected(javafx.event.ActionEvent actionEvent) Enables input when a player is selected- Parameters:
actionEvent- event
-
deletePlayer
Deletes selected player when the user clicks on the delete player button- Parameters:
actionEvent- Click event- Throws:
IOException- if an error occurs
-
teamSelected
public void teamSelected(javafx.event.ActionEvent actionEvent) Enables to select a player when a team is selected- Parameters:
actionEvent- 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
-