Class NewTournamentTeamSelectionController

java.lang.Object
edu.ntnu.idatt1002.k01g08.fta.guiControllers.NewTournamentTeamSelectionController

public class NewTournamentTeamSelectionController extends Object
Controller for the new tournament team selection page. This is where the user selects which teams are in the tournament
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    backButtonClick(javafx.event.Event event)
    Goes to the last page view when the user clicks on the back button
    void
    backButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to use the back button
    void
    cancel(javafx.event.ActionEvent actionEvent)
    Lets the user cancel the selection and returns to home page when clicking the cancel button
    void
    clickedOnSelection(javafx.event.Event event)
    Lets the user select teams from the drop-down menu
    void
    confirm(javafx.event.ActionEvent actionEvent)
    Lets the user confirm their selection when they have added the correct amount of teams.
    void
    exitButtonClick(javafx.event.Event event)
    Goes to the main page view when the user clicks on the home button
    void
    homeButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the home page
    void
    Deprecated.
    void
    reportButtonClick(javafx.event.Event event)
    Goes to the report page view when the user clicks on the report button
    void
    reportButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the report page
    void
    reset(javafx.event.ActionEvent actionEvent)
    Lets the user reset their selection when clicking the reset button
    void
    settingsButtonClick(javafx.event.Event event)
    Goes to the settings view when user clicks on the settings button
    void
    settingsButtonEnter(javafx.scene.input.KeyEvent event)
    Enables user to use enter key to go to the settings page

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NewTournamentTeamSelectionController

      public NewTournamentTeamSelectionController()
  • Method Details

    • initialize

      @Deprecated public void initialize()
      Deprecated.
      Initializes the view on load.
    • settingsButtonClick

      public void settingsButtonClick(javafx.event.Event event) throws IOException
      Goes to the settings view when user clicks on the settings button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • reportButtonClick

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

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

      public void backButtonClick(javafx.event.Event event) throws IOException
      Goes to the last page view when the user clicks on the back button
      Parameters:
      event - Click event
      Throws:
      IOException - if an error occurs
    • confirm

      public void confirm(javafx.event.ActionEvent actionEvent) throws IOException
      Lets the user confirm their selection when they have added the correct amount of teams. Goes to the tournament overview page
      Parameters:
      actionEvent - Click Event
      Throws:
      IOException - if an error occurs
    • cancel

      public void cancel(javafx.event.ActionEvent actionEvent) throws IOException
      Lets the user cancel the selection and returns to home page when clicking the cancel button
      Parameters:
      actionEvent - Click Event
      Throws:
      IOException - if an error occurs
    • clickedOnSelection

      public void clickedOnSelection(javafx.event.Event event)
      Lets the user select teams from the drop-down menu
      Parameters:
      event - event
    • reset

      public void reset(javafx.event.ActionEvent actionEvent) throws IOException
      Lets the user reset their selection when clicking the reset button
      Parameters:
      actionEvent - Click Event
      Throws:
      IOException - if an error occurs
    • settingsButtonEnter

      public void settingsButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the settings page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • reportButtonEnter

      public void reportButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the report page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • backButtonEnter

      public void backButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to use the back button
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs
    • homeButtonEnter

      public void homeButtonEnter(javafx.scene.input.KeyEvent event) throws IOException
      Enables user to use enter key to go to the home page
      Parameters:
      event - KeyEvent
      Throws:
      IOException - if an error occurs