java.lang.Object
ch.ladestation.connectncharge.controller.pagecontroller.middle.GamePageController
All Implemented Interfaces:
PageController, ViewMixin<Game,ApplicationController>, javafx.fxml.Initializable

public class GamePageController extends Object implements ViewMixin<Game,ApplicationController>, javafx.fxml.Initializable, PageController
  • Constructor Details

    • GamePageController

      public GamePageController()
  • Method Details

    • getPublicEndTime

      public static String getPublicEndTime()
      This method is getter for publicEndTime.
      Returns:
      publicEndTime
    • setPublicEndTime

      public static void setPublicEndTime(String publicEndTimeParam)
    • initialize

      public void initialize(URL location, ResourceBundle resources)
      initialize
      Specified by:
      initialize in interface javafx.fxml.Initializable
      Parameters:
      location - The location used to resolve relative paths for the root object, or null if the location is not known.
      resources - The resources used to localize the root object, or null if the root object was not localized.
    • setController

      public void setController(ApplicationController controller)
      Specified by:
      setController in interface PageController
    • showHomePage

      public void showHomePage(javafx.event.ActionEvent event) throws IOException
      Throws:
      IOException
    • showCost

      public void showCost()
    • getCosts

      public javafx.scene.control.Label getCosts()
    • setupModelToUiBindings

      public void setupModelToUiBindings(Game model)
      This method updates the ui elements reactively from the model.
      Parameters:
      model -
    • setupUiToActionBindings

      public void setupUiToActionBindings(ApplicationController controller)
    • initializeParts

      public void initializeParts()
    • layoutParts

      public void layoutParts()
      Description copied from interface: ViewMixin
      the method name says it all
      Specified by:
      layoutParts in interface ViewMixin<Game,ApplicationController>
    • getStylesheets

      public List<String> getStylesheets()
      Specified by:
      getStylesheets in interface ViewMixin<Game,ApplicationController>
    • initializeSelf

      default void initializeSelf()
      Everything that needs to be done to initialize the UI-part itself.

      For GUIs loading stylesheet-files or additional fonts are typical examples.

    • startUp

      default void startUp(ApplicationController controller)
      At the Startup, this method gets called.

      Perfect, if a function in the controller or in the pui needs to be run exactly once.