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

public class RegionController extends Object implements javafx.fxml.Initializable
class for handling events in a regional page
Author:
Gruppe 6
  • Field Details

    • startDateColumn

      private javafx.scene.control.TableColumn<Tournament,Integer> startDateColumn
    • endDateColumn

      private javafx.scene.control.TableColumn<Tournament,Integer> endDateColumn
    • tournamentNameColumn

      private javafx.scene.control.TableColumn<Tournament,String> tournamentNameColumn
    • tableView

      private javafx.scene.control.TableView<Tournament> tableView
    • regionHeader

      private javafx.scene.control.Label regionHeader
    • currentTournamentId

      private AtomicInteger currentTournamentId
    • selectedTournament

      private Tournament selectedTournament
    • tournaments

      private List<Tournament> tournaments
  • Constructor Details

    • RegionController

      public RegionController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      in addition, this method also keeps track if anythin in tableview is selected or click on, and will therefore send the user to that tournament when selected
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      url -
      resourceBundle -
    • updateList

      private void updateList()
      this method is used for updating the list of tournaments in a region
    • goToCurrentPage

      public void goToCurrentPage(javafx.event.Event event) throws IOException
      this takes the user tp a current page
      Parameters:
      event - any event
      Throws:
      IOException - when path not found
    • toSelectedTournament

      public void toSelectedTournament(javafx.event.ActionEvent event) throws IOException
      this takes the user to selected tournament
      Parameters:
      event - any event
      Throws:
      IOException - when path not found
    • removeSelectedTournament

      public void removeSelectedTournament(javafx.event.ActionEvent event) throws IOException
      Throws:
      IOException
    • backToRegionChoice

      public void backToRegionChoice(javafx.event.ActionEvent event) throws IOException
      this takes the user to region selection
      Parameters:
      event - any event
      Throws:
      IOException - when path not found
    • toSetUpNewTournament

      public void toSetUpNewTournament(javafx.event.ActionEvent event) throws IOException
      this method takes the user to SetUpTournament page. where they can create a new tournament
      Parameters:
      event - any event
      Throws:
      IOException - when path not found
    • logOutMethod

      public void logOutMethod()
      used for Logout