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
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.text.Textprivate javafx.scene.control.ChoiceBox<String>private javafx.scene.control.TextFieldprivate javafx.scene.control.TextFieldprivate javafx.scene.control.TextFieldprivate javafx.scene.control.TextFieldprivate javafx.scene.control.TableView<Team> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmethod that confirms when new teams is to bee registeredvoidinitialize(URL url, ResourceBundle resourceBundle) voidmethod for log outvoidmethod that resets information written in text boxesprivate voidmethods that throws exceptions when neededvoidtoFrontPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidtoHelpPage(javafx.event.ActionEvent event) method that send the user so the help pagevoidtoMainPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidtoMatches(javafx.event.ActionEvent event) method that sends program to specific screenvoidtoResults(javafx.event.ActionEvent event) method that sends program to specific screenprivate voidmethod 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:
initializein 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
-