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
Modifier and TypeFieldDescriptionprivate javafx.scene.control.DatePicker
private Match
private javafx.scene.control.Button
private javafx.scene.control.Button
private javafx.scene.control.TextField
private javafx.scene.control.TextField
private javafx.scene.control.TableView<Match>
private javafx.scene.control.TableColumn<Match,
LocalDateTime> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(URL url, ResourceBundle resourceBundle) void
logout()
method for log outvoid
method that sends program to specific screenvoid
sendToFrontPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
sendToRegisterResult
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
sendToRegisterTeam
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
sendToSetUpMatches
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
void
void
toHelpPage
(javafx.event.ActionEvent event) method that sends program to specific screenvoid
This method attaches the event handler setOnMouseClicked on the match table in order to autofill the input fields if a match is clicked.private void
method 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:
initialize
in 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
-