java.lang.Object
ch.ladestation.connectncharge.controller.pagecontroller.end.NameInputController
All Implemented Interfaces:
PageController, ViewMixin<Game,ControllerBase<Game>>, javafx.fxml.Initializable

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

    • NameInputController

      public NameInputController()
  • Method Details

    • goBackToEndScreen

      public void goBackToEndScreen(javafx.scene.input.MouseEvent mouseEvent) throws IOException
      Throws:
      IOException
    • initialize

      public void initialize(URL url, ResourceBundle resourceBundle)
      Specified by:
      initialize in interface javafx.fxml.Initializable
    • goToHighscoreScreen

      public void goToHighscoreScreen(javafx.event.ActionEvent actionEvent) throws IOException
      Throws:
      IOException
    • keyPressed

      public void keyPressed(javafx.event.ActionEvent actionEvent)
    • toggleCapsLock

      public void toggleCapsLock(javafx.event.ActionEvent actionEvent)
    • toggleDelete

      public void toggleDelete(javafx.event.ActionEvent actionEvent)
    • toggleSpace

      public void toggleSpace(javafx.event.ActionEvent actionEvent)
    • showKeyboard

      public void showKeyboard()
    • hideKeyboard

      public void hideKeyboard()
    • setController

      public void setController(ApplicationController controller)
      Specified by:
      setController in interface PageController
    • 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>>
    • getCurrentName

      public static String getCurrentName()
    • setCurrentName

      public static void setCurrentName(String currentNameParam)
    • 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.

    • setupUiToActionBindings

      default void setupUiToActionBindings(ControllerBase<Game> controller)
      Triggering some action on Controller if the user interacts with the UI.

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

      All EventHandlers will call a single method on the Controller.

      If you are about to call more than one method, you should introduce a new method on Controller.

    • 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.