Class TeamRegisterController
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.TeamRegisterController
- All Implemented Interfaces:
javafx.fxml.Initializable
this class handles team registration and different methods for user
team registration will happen in the fxml page and is used here
- Author:
- Gruppe 6
-
Field Summary
Modifier and TypeFieldDescriptionprivate javafx.scene.text.Text
private javafx.scene.control.ChoiceBox<String>
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.TableView<Team>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
method that confirms when new teams is to bee registeredvoid
initialize
(URL url, ResourceBundle resourceBundle) void
method for log outvoid
method that resets information written in text boxesprivate void
methods that throws exceptions when neededvoid
toFrontPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
toHelpPage
(javafx.event.ActionEvent event) method that send the user so the help pagevoid
toMainPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
toMatches
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
toResults
(javafx.event.ActionEvent event) method that sends program to specific screenprivate void
method for updating the table view for new teams registries
-
Field Details
-
feedbackText
private javafx.scene.text.Text feedbackText -
teamNameTextFieldInput
private javafx.scene.control.TextField teamNameTextFieldInput -
teamLeaderTextFieldInput
private javafx.scene.control.TextField teamLeaderTextFieldInput -
regionTextFieldInput
private javafx.scene.control.TextField regionTextFieldInput -
phoneNumTextFieldInput
private javafx.scene.control.TextField phoneNumTextFieldInput -
numPlayerInput
-
teamTableView
-
teamNameColumn
-
numPlayerColumn
-
teamLeaderColumn
-
placeColumn
-
phoneNumColumn
-
-
Constructor Details
-
TeamRegisterController
public TeamRegisterController()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
updateTableView
private void updateTableView()method for updating the table view for new teams registries -
confirmAddNewTeam
public void confirmAddNewTeam()method that confirms when new teams is to bee registered -
resetInfo
public void resetInfo()method that resets information written in text boxes -
teamInfoExceptions
methods that throws exceptions when needed- Throws:
IllegalArgumentException
- in different scenarios
-
toFrontPage
method that sends program to specific screen- Parameters:
event
- button event- Throws:
IOException
- when path not found
-
toMainPage
method that sends program to specific screen- Parameters:
event
- button event- Throws:
IOException
- when path not found
-
toResults
method that sends program to specific screen- Parameters:
event
- button event- Throws:
IOException
- when path not found
-
toMatches
method that sends program to specific screen- Parameters:
event
- button event- Throws:
IOException
- when path not found
-
LogOutButton
public void LogOutButton()method for log out -
toHelpPage
method that send the user so the help page- Parameters:
event
- any event- Throws:
IOException
- when path not found
-