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
Modifier and TypeFieldDescriptionprivate javafx.scene.control.DatePicker
private javafx.scene.text.Text
private javafx.scene.control.ChoiceBox<Integer>
private javafx.scene.control.TableColumn<?,
?> private Pattern
private 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.TextField
private javafx.scene.control.TableColumn<?,
?> private javafx.scene.control.ChoiceBox<String>
private javafx.scene.control.ChoiceBox<String>
private javafx.scene.control.TableColumn<?,
?> private TeamRegister
private javafx.scene.control.TableColumn<?,
?> private javafx.scene.control.TableColumn<?,
?> -
Constructor Summary
-
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.void
goMainPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
goToFrontPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
goToRegisterResult
(javafx.event.ActionEvent actionEvent) method that sends program to specific screenvoid
goToTeamRegisterPage
(javafx.event.ActionEvent actionEvent) method that sends program to specific screenvoid
initialize
(URL url, ResourceBundle resourceBundle) void
method for log outvoid
method for when a new match is to be createdvoid
toHelpPage
(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:
initialize
in 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
-