Module edu.ntnu.idatt1002.k1g4
Class HomeController
java.lang.Object
edu.ntnu.idatt1002.k1g4.client.controllers.HomeController
- All Implemented Interfaces:
javafx.fxml.Initializable
Home Controller
handles the home page
and the buttons for go to
the cup creation page, help and rules.
Coupled with the home.fxml file
- Version:
- 0.5
- Author:
- Carl Gützkow, Nicolai H. Brand.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Helper method to hide info when no cups.void
initialize
(URL url, ResourceBundle resourceBundle) Overridden method from Initializable that will run each time this controller is loaded.void
Helper method to show info when cups.void
Helper method to update list of cups.
-
Constructor Details
-
HomeController
public HomeController()
-
-
Method Details
-
initialize
Overridden method from Initializable that will run each time this controller is loaded. Used to display all cups that are created Button for deleting a match is set to red- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
url
- represents a Uniform Resource LocatorresourceBundle
- bundle that contains locale-specific objects
-
updateListOfCups
public void updateListOfCups()Helper method to update list of cups. Puts all cups from Model into a list of current cups -
showInfoWhenCups
public void showInfoWhenCups()Helper method to show info when cups. -
hideInfoWhenNoCups
public void hideInfoWhenNoCups()Helper method to hide info when no cups.
-