Class RegionController
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.RegionController
- All Implemented Interfaces:
javafx.fxml.Initializable
class for handling events in a regional page
- Author:
- Gruppe 6
-
Field Summary
Modifier and TypeFieldDescriptionprivate AtomicInteger
private javafx.scene.control.TableColumn<Tournament,
Integer> private javafx.scene.control.Label
private Tournament
private javafx.scene.control.TableColumn<Tournament,
Integer> private javafx.scene.control.TableView<Tournament>
private javafx.scene.control.TableColumn<Tournament,
String> private List<Tournament>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
backToRegionChoice
(javafx.event.ActionEvent event) this takes the user to region selectionvoid
goToCurrentPage
(javafx.event.Event event) this takes the user tp a current pagevoid
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 selectedvoid
used for Logoutvoid
removeSelectedTournament
(javafx.event.ActionEvent event) void
toSelectedTournament
(javafx.event.ActionEvent event) this takes the user to selected tournamentvoid
toSetUpNewTournament
(javafx.event.ActionEvent event) this method takes the user to SetUpTournament page.private void
this method is used for updating the list of tournaments in a region
-
Field Details
-
startDateColumn
-
endDateColumn
-
tournamentNameColumn
-
tableView
-
regionHeader
private javafx.scene.control.Label regionHeader -
currentTournamentId
-
selectedTournament
-
tournaments
-
-
Constructor Details
-
RegionController
public RegionController()
-
-
Method Details
-
initialize
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 interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
updateList
private void updateList()this method is used for updating the list of tournaments in a region -
goToCurrentPage
this takes the user tp a current page- Parameters:
event
- any event- Throws:
IOException
- when path not found
-
toSelectedTournament
this takes the user to selected tournament- Parameters:
event
- any event- Throws:
IOException
- when path not found
-
removeSelectedTournament
- Throws:
IOException
-
backToRegionChoice
this takes the user to region selection- Parameters:
event
- any event- Throws:
IOException
- when path not found
-
toSetUpNewTournament
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
-