java.lang.Object
ch.ladestation.connectncharge.controller.pagecontroller.beginning.HomePageController
All Implemented Interfaces:
PageController, ViewMixin<Game,ControllerBase<Game>>

public class HomePageController extends Object implements ViewMixin<Game,ControllerBase<Game>>, PageController
  • Constructor Details

    • HomePageController

      public HomePageController()
  • Method Details

    • setController

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

      public void setupUiToActionBindings(ControllerBase<Game> 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,ControllerBase<Game>>
    • getStylesheets

      public List<String> getStylesheets()
      Specified by:
      getStylesheets in interface ViewMixin<Game,ControllerBase<Game>>
    • 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.

    • setupModelToUiBindings

      default void setupModelToUiBindings(Game model)
      Whenever an 'ObservableValue' in 'model' changes, the UI must be updated.

      There's no need to have access to controller for this task.

      Register all necessary observers here.

    • startUp

      default void startUp(ControllerBase<Game> 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.