Class SetUpMatchesController
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.SetUpMatchesController
- All Implemented Interfaces:
javafx.fxml.Initializable
this class handles events when a match is to be created
- Author:
- Gruppe 6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.DatePickerprivate javafx.scene.text.Textprivate javafx.scene.control.ChoiceBox<Integer>private javafx.scene.control.TableColumn<?,?> private Patternprivate javafx.scene.control.TableColumn<?,?> private javafx.scene.control.ChoiceBox<String>private javafx.scene.control.ChoiceBox<String>private javafx.scene.control.TableColumn<?,?> private javafx.scene.control.TextFieldprivate javafx.scene.control.TableColumn<?,?> private javafx.scene.control.ChoiceBox<String>private javafx.scene.control.ChoiceBox<String>private javafx.scene.control.TableColumn<?,?> private TeamRegisterprivate javafx.scene.control.TableColumn<?,?> private javafx.scene.control.TableColumn<?,?> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateHourMinList(CharSequence stringToBeConverted) This method takes in a string of format HH:MM and converts it to a list (index 2) of hours and minutes as ints.voidgoMainPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidgoToFrontPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidgoToRegisterResult(javafx.event.ActionEvent actionEvent) method that sends program to specific screenvoidgoToTeamRegisterPage(javafx.event.ActionEvent actionEvent) method that sends program to specific screenvoidinitialize(URL url, ResourceBundle resourceBundle) voidmethod for log outvoidmethod for when a new match is to be createdvoidtoHelpPage(javafx.event.ActionEvent event) method that sends program to specific screen
-
Field Details
-
matchList
-
tournamentTeamRegister
-
referees
-
hourMinPat
-
friColumn
private javafx.scene.control.TableColumn<?,?> friColumn -
mondayColumn
private javafx.scene.control.TableColumn<?,?> mondayColumn -
satColumn
private javafx.scene.control.TableColumn<?,?> satColumn -
sunColumn
private javafx.scene.control.TableColumn<?,?> sunColumn -
thuColumn
private javafx.scene.control.TableColumn<?,?> thuColumn -
timeColumn
-
tuesdayColumn
private javafx.scene.control.TableColumn<?,?> tuesdayColumn -
wedColumn
private javafx.scene.control.TableColumn<?,?> wedColumn -
fieldChoice
-
refereeChoice
-
refereeChoice2
-
teamChoice1
-
teamChoice2
-
dateField
private javafx.scene.control.DatePicker dateField -
startTime
private javafx.scene.control.TextField startTime -
errorMessage
private javafx.scene.text.Text errorMessage
-
-
Constructor Details
-
SetUpMatchesController
public SetUpMatchesController()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
submitMatch
public void submitMatch()method for when a new match is to be created -
goToFrontPage
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
goToTeamRegisterPage
method that sends program to specific screen- Parameters:
actionEvent- button event- Throws:
IOException- when path not found
-
goToRegisterResult
method that sends program to specific screen- Parameters:
actionEvent- button event- Throws:
IOException- when path not found
-
goMainPage
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
LogOutButton
public void LogOutButton()method for log out -
createHourMinList
This method takes in a string of format HH:MM and converts it to a list (index 2) of hours and minutes as ints.- Parameters:
stringToBeConverted- Character sequence of HH:MM.- Returns:
- List of hours and minutes, represented as Integers
-
toHelpPage
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-