Class SetUpTournamentController
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.SetUpTournamentController
- All Implemented Interfaces:
javafx.fxml.Initializable
this class has the different methods and fields necessary for creating new tournaments
- Author:
- Gruppe 6
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private javafx.scene.image.ImageView
private javafx.scene.text.Text
private Tournament
private javafx.scene.control.DatePicker
private javafx.scene.control.ChoiceBox<String>
private javafx.scene.control.TextField
private javafx.scene.control.ChoiceBox<Integer>
private javafx.scene.control.TextField
private javafx.scene.control.DatePicker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
confirmTournament
(javafx.event.ActionEvent actionEvent) method for confirming when a new tournament i to be createdprivate javafx.scene.image.Image
getImageByName
(String imageName) Method sets an image by the image name The method requires that all images is located in the resources underTournamentPictures
and that the image is pngvoid
initialize
(URL url, ResourceBundle resourceBundle) private void
log out methodvoid
method that sets a specific image on the screen when chosen by uservoid
toRegionChoice
(javafx.event.ActionEvent event) method that sends program to specific screen
-
Field Details
-
tournament
-
tournamentNameTextFieldInput
private javafx.scene.control.TextField tournamentNameTextFieldInput -
tournamentPlaceTextFieldInput
private javafx.scene.control.TextField tournamentPlaceTextFieldInput -
tournamentLayoutInput
-
tournamentNumFieldsInput
-
tournamentStartDateInput
private javafx.scene.control.DatePicker tournamentStartDateInput -
tournamentEndDateInput
private javafx.scene.control.DatePicker tournamentEndDateInput -
layoutImageView
private javafx.scene.image.ImageView layoutImageView -
choosenFormat
-
layoutText
private javafx.scene.text.Text layoutText
-
-
Constructor Details
-
SetUpTournamentController
public SetUpTournamentController()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
-resourceBundle
-
-
getImageByName
Method sets an image by the image name The method requires that all images is located in the resources underTournamentPictures
and that the image is png- Parameters:
imageName
- The name of the image- Returns:
- The image if found
-
setImageOn
public void setImageOn()method that sets a specific image on the screen when chosen by user -
confirmTournament
method for confirming when a new tournament i to be created- Parameters:
actionEvent
- button event- Throws:
IOException
-
toRegionChoice
method that sends program to specific screen- Parameters:
event
- button event- Throws:
IOException
- when path not found
-
logOutButton
private void logOutButton()log out method
-