Class MainPageController
java.lang.Object
edu.ntnu.idatt1002.g106.handballapp.finalprod.controller.MainPageController
- All Implemented Interfaces:
javafx.fxml.Initializable
This is the mainpage class and hold information of matches, gets updated when initialized
- Author:
- Gruppe 6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate javafx.scene.control.DatePickerprivate Matchprivate javafx.scene.control.Buttonprivate javafx.scene.control.Buttonprivate javafx.scene.control.TextFieldprivate javafx.scene.control.TextFieldprivate javafx.scene.control.TableView<Match>private javafx.scene.control.TableColumn<Match,LocalDateTime> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidinitialize(URL url, ResourceBundle resourceBundle) voidlogout()method for log outvoidmethod that sends program to specific screenvoidsendToFrontPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidsendToRegisterResult(javafx.event.ActionEvent event) method that sends program to specific screenvoidsendToRegisterTeam(javafx.event.ActionEvent event) method that sends program to specific screenvoidsendToSetUpMatches(javafx.event.ActionEvent event) method that sends program to specific screenvoidvoidvoidtoHelpPage(javafx.event.ActionEvent event) method that sends program to specific screenvoidThis method attaches the event handler setOnMouseClicked on the match table in order to autofill the input fields if a match is clicked.private voidmethod that updates MainPages tableView
-
Field Details
-
table
-
time
-
match
-
field
-
firstRef
-
secondRef
-
dateSelect
private javafx.scene.control.DatePicker dateSelect -
refAdd
private javafx.scene.control.Button refAdd -
refField
private javafx.scene.control.TextField refField -
refAdd2
private javafx.scene.control.Button refAdd2 -
refField2
private javafx.scene.control.TextField refField2 -
matchSelected
-
-
Constructor Details
-
MainPageController
public MainPageController()
-
-
Method Details
-
initialize
- Specified by:
initializein interfacejavafx.fxml.Initializable- Parameters:
url-resourceBundle-
-
updateTableView
private void updateTableView()method that updates MainPages tableView -
trackTableClick
public void trackTableClick()This method attaches the event handler setOnMouseClicked on the match table in order to autofill the input fields if a match is clicked. -
sendToFrontPage
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
sendToSetUpMatches
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
sendToRegisterTeam
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
sendToRegisterResult
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
selectDate
public void selectDate()method that sends program to specific screen- Throws:
IOException- when path not found
-
toHelpPage
method that sends program to specific screen- Parameters:
event- button event- Throws:
IOException- when path not found
-
setFirstReferee
public void setFirstReferee() -
setSecondReferee
public void setSecondReferee() -
logout
public void logout()method for log out
-