Class HighscoreScreenController
java.lang.Object
ch.ladestation.connectncharge.controller.pagecontroller.end.HighscoreScreenController
- All Implemented Interfaces:
PageController
,ViewMixin<Game,
ControllerBase<Game>>
public class HighscoreScreenController
extends Object
implements ViewMixin<Game,ControllerBase<Game>>, PageController
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.ladestation.connectncharge.util.mvcbase.ViewMixin
ViewMixin.ActionTrigger<V>, ViewMixin.Converter<V>, ViewMixin.Updater<V,
P> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
default void
Everything that needs to be done to initialize the UI-part itself.void
the method name says it allvoid
setController
(ApplicationController controller) void
setPlayerTime
(String endTime) default void
setupModelToUiBindings
(Game model) Whenever an 'ObservableValue' in 'model' changes, the UI must be updated.default void
setupUiToActionBindings
(ControllerBase<Game> controller) Triggering some action on Controller if the user interacts with the UI.void
showBonusPage
(javafx.event.ActionEvent actionEvent) void
showGamePage
(javafx.event.ActionEvent actionEvent) void
showHomeScreen
(javafx.scene.input.MouseEvent mouseEvent) default void
startUp
(ControllerBase<Game> controller) At the Startup, this method gets called.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.ladestation.connectncharge.util.mvcbase.ViewMixin
addStylesheetFiles, init, loadFonts, onChangeOf, onChangeOf, onChangeOf, onChangeOf
-
Constructor Details
-
HighscoreScreenController
public HighscoreScreenController()
-
-
Method Details
-
initialize
public void initialize() -
setPlayerTime
-
showGamePage
- Throws:
IOException
-
showBonusPage
public void showBonusPage(javafx.event.ActionEvent actionEvent) -
showHomeScreen
- Throws:
IOException
-
setController
- Specified by:
setController
in interfacePageController
-
initializeParts
public void initializeParts() -
layoutParts
public void layoutParts()Description copied from interface:ViewMixin
the method name says it all- Specified by:
layoutParts
in interfaceViewMixin<Game,
ControllerBase<Game>>
-
getStylesheets
- Specified by:
getStylesheets
in interfaceViewMixin<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.
-
setupUiToActionBindings
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
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
At the Startup, this method gets called.Perfect, if a function in the controller or in the pui needs to be run exactly once.
-