Class TeamRegisterController

java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.TeamRegisterController
All Implemented Interfaces:
javafx.fxml.Initializable

public class TeamRegisterController extends Object implements 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 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

      private javafx.scene.control.ChoiceBox<String> numPlayerInput
    • teamTableView

      private javafx.scene.control.TableView<Team> teamTableView
    • teamNameColumn

      private javafx.scene.control.TableColumn<Team,String> teamNameColumn
    • numPlayerColumn

      private javafx.scene.control.TableColumn<Team,Integer> numPlayerColumn
    • teamLeaderColumn

      private javafx.scene.control.TableColumn<Team,String> teamLeaderColumn
    • placeColumn

      private javafx.scene.control.TableColumn<Team,String> placeColumn
    • phoneNumColumn

      private javafx.scene.control.TableColumn<Team,Integer> phoneNumColumn
  • Constructor Details

    • TeamRegisterController

      public TeamRegisterController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.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

      private void teamInfoExceptions() throws IllegalArgumentException
      methods that throws exceptions when needed
      Throws:
      IllegalArgumentException - in different scenarios
    • toFrontPage

      public void toFrontPage(javafx.event.ActionEvent event) throws IOException
      method that sends program to specific screen
      Parameters:
      event - button event
      Throws:
      IOException - when path not found
    • toMainPage

      public void toMainPage(javafx.event.ActionEvent event) throws IOException
      method that sends program to specific screen
      Parameters:
      event - button event
      Throws:
      IOException - when path not found
    • toResults

      public void toResults(javafx.event.ActionEvent event) throws IOException
      method that sends program to specific screen
      Parameters:
      event - button event
      Throws:
      IOException - when path not found
    • toMatches

      public void toMatches(javafx.event.ActionEvent event) throws IOException
      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

      public void toHelpPage(javafx.event.ActionEvent event) throws IOException
      method that send the user so the help page
      Parameters:
      event - any event
      Throws:
      IOException - when path not found