java.lang.Object
edu.ntnu.idatt1002.k1g4.client.controllers.HomeController
All Implemented Interfaces:
javafx.fxml.Initializable

public class HomeController extends Object implements 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 Details

    • HomeController

      public HomeController()
  • Method Details

    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      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 interface javafx.fxml.Initializable
      Parameters:
      url - represents a Uniform Resource Locator
      resourceBundle - 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.