Class SetUpMatchesController

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

public class SetUpMatchesController extends Object implements javafx.fxml.Initializable
this class handles events when a match is to be created
Author:
Gruppe 6
  • Field Details

    • matchList

      private List<Match> matchList
    • tournamentTeamRegister

      private TeamRegister tournamentTeamRegister
    • referees

      private ArrayList<String> referees
    • hourMinPat

      private Pattern hourMinPat
    • friColumn

      private javafx.scene.control.TableColumn<?,?> friColumn
    • mondayColumn

      private javafx.scene.control.TableColumn<?,?> mondayColumn
    • satColumn

      private javafx.scene.control.TableColumn<?,?> satColumn
    • sunColumn

      private javafx.scene.control.TableColumn<?,?> sunColumn
    • thuColumn

      private javafx.scene.control.TableColumn<?,?> thuColumn
    • timeColumn

      private javafx.scene.control.TableColumn<LocalTime,String> timeColumn
    • tuesdayColumn

      private javafx.scene.control.TableColumn<?,?> tuesdayColumn
    • wedColumn

      private javafx.scene.control.TableColumn<?,?> wedColumn
    • fieldChoice

      private javafx.scene.control.ChoiceBox<Integer> fieldChoice
    • refereeChoice

      private javafx.scene.control.ChoiceBox<String> refereeChoice
    • refereeChoice2

      private javafx.scene.control.ChoiceBox<String> refereeChoice2
    • teamChoice1

      private javafx.scene.control.ChoiceBox<String> teamChoice1
    • teamChoice2

      private javafx.scene.control.ChoiceBox<String> teamChoice2
    • dateField

      private javafx.scene.control.DatePicker dateField
    • startTime

      private javafx.scene.control.TextField startTime
    • errorMessage

      private javafx.scene.text.Text errorMessage
  • Constructor Details

    • SetUpMatchesController

      public SetUpMatchesController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url -
      resourceBundle -
    • submitMatch

      public void submitMatch()
      method for when a new match is to be created
    • goToFrontPage

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

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

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

      public void goMainPage(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
    • createHourMinList

      private List<Integer> createHourMinList(CharSequence stringToBeConverted)
      This method takes in a string of format HH:MM and converts it to a list (index 2) of hours and minutes as ints.
      Parameters:
      stringToBeConverted - Character sequence of HH:MM.
      Returns:
      List of hours and minutes, represented as Integers
    • toHelpPage

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