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
FieldsModifier and TypeFieldDescriptionprivate Stringprivate javafx.scene.image.ImageViewprivate javafx.scene.text.Textprivate Tournamentprivate javafx.scene.control.DatePickerprivate javafx.scene.control.ChoiceBox<String>private javafx.scene.control.TextFieldprivate javafx.scene.control.ChoiceBox<Integer>private javafx.scene.control.TextFieldprivate javafx.scene.control.DatePicker -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfirmTournament(javafx.event.ActionEvent actionEvent) method for confirming when a new tournament i to be createdprivate javafx.scene.image.ImagegetImageByName(String imageName) Method sets an image by the image name The method requires that all images is located in the resources underTournamentPicturesand that the image is pngvoidinitialize(URL url, ResourceBundle resourceBundle) private voidlog out methodvoidmethod that sets a specific image on the screen when chosen by uservoidtoRegionChoice(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:
initializein 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 underTournamentPicturesand 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
-