Class GamePageController
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
-
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 TypeMethodDescriptionjavafx.scene.control.Label
getCosts()
static String
This method is getter for publicEndTime.void
initialize
(URL location, ResourceBundle resources) initializevoid
default void
Everything that needs to be done to initialize the UI-part itself.void
the method name says it allvoid
setController
(ApplicationController controller) static void
setPublicEndTime
(String publicEndTimeParam) void
setupModelToUiBindings
(Game model) This method updates the ui elements reactively from the model.void
setupUiToActionBindings
(ApplicationController controller) void
showCost()
void
showHomePage
(javafx.event.ActionEvent event) default void
startUp
(ApplicationController 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
-
GamePageController
public GamePageController()
-
-
Method Details
-
getPublicEndTime
This method is getter for publicEndTime.- Returns:
- publicEndTime
-
setPublicEndTime
-
initialize
initialize- Specified by:
initialize
in interfacejavafx.fxml.Initializable
- Parameters:
location
- The location used to resolve relative paths for the root object, ornull
if the location is not known.resources
- The resources used to localize the root object, ornull
if the root object was not localized.
-
setController
- Specified by:
setController
in interfacePageController
-
showHomePage
- Throws:
IOException
-
showCost
public void showCost() -
getCosts
public javafx.scene.control.Label getCosts() -
setupModelToUiBindings
This method updates the ui elements reactively from the model.- Parameters:
model
-
-
setupUiToActionBindings
-
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,
ApplicationController>
-
getStylesheets
- Specified by:
getStylesheets
in interfaceViewMixin<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
At the Startup, this method gets called.Perfect, if a function in the controller or in the pui needs to be run exactly once.
-