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

public class MainController extends Object
Controller for the main page
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Deprecated.
    void
    loadTournament(javafx.event.ActionEvent actionEvent)
    Goes to the load tournament page when user clicks on the load tournament button
    void
    newTournament(javafx.event.ActionEvent actionEvent)
    Goes to the new tournament page when the user clicks on the new tournament button
    void
    reportButtonClick(javafx.event.Event event)
    Goes to the report page 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
    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
    void
    teamManagement(javafx.event.ActionEvent actionEvent)
    Goes to the team management page when the user clicks on the team management button

    Methods inherited from class java.lang.Object

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

    • MainController

      public MainController()
  • 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
    • loadTournament

      public void loadTournament(javafx.event.ActionEvent actionEvent) throws IOException
      Goes to the load tournament page when user clicks on the load tournament button
      Parameters:
      actionEvent - Click Event
      Throws:
      IOException - if an error occurs
    • teamManagement

      public void teamManagement(javafx.event.ActionEvent actionEvent) throws IOException
      Goes to the team management page when the user clicks on the team management button
      Parameters:
      actionEvent - Click event
      Throws:
      IOException - if an error occurs
    • reportButtonClick

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

      public void newTournament(javafx.event.ActionEvent actionEvent) throws IOException
      Goes to the new tournament page when the user clicks on the new tournament 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