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.LabelgetCosts()static StringThis method is getter for publicEndTime.voidinitialize(URL location, ResourceBundle resources) initializevoiddefault voidEverything that needs to be done to initialize the UI-part itself.voidthe method name says it allvoidsetController(ApplicationController controller) static voidsetPublicEndTime(String publicEndTimeParam) voidsetupModelToUiBindings(Game model) This method updates the ui elements reactively from the model.voidsetupUiToActionBindings(ApplicationController controller) voidshowCost()voidshowHomePage(javafx.event.ActionEvent event) default voidstartUp(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, waitMethods 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:
initializein interfacejavafx.fxml.Initializable- Parameters:
location- The location used to resolve relative paths for the root object, ornullif the location is not known.resources- The resources used to localize the root object, ornullif the root object was not localized.
-
setController
- Specified by:
setControllerin 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:ViewMixinthe method name says it all- Specified by:
layoutPartsin interfaceViewMixin<Game,ApplicationController>
-
getStylesheets
- Specified by:
getStylesheetsin 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.
-