java.lang.Object
javafx.application.Application
org.tentackle.fx.rdc.app.FxApplication
org.tentackle.fx.rdc.app.LoginApplication
The login FX application.
Displays the login view and spawns a login handler.
- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class javafx.application.Application
javafx.application.Application.Parameters -
Field Summary
Fields inherited from class javafx.application.Application
STYLESHEET_CASPIAN, STYLESHEET_MODENA -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.tentackle.session.SessionInfoCreates the session info to be passed to the login controller.protected LoginLoads the login controller.
Applications may override this method to use specific FXML or CSS files.voidshowApplicationStatus(String msg, double progress) Shows the initialization status during application startup.voidstartApplication(javafx.stage.Stage stage) The main entry point for all Tentackle JavaFX applications.protected voidupdateSessionInfoFromEnvironment(org.tentackle.session.SessionInfo sessionInfo) Updates the session with username and password from the process environment.Methods inherited from class org.tentackle.fx.rdc.app.FxApplication
setStopReason, start, stopMethods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet
-
Constructor Details
-
LoginApplication
public LoginApplication()Creates the login application.
-
-
Method Details
-
startApplication
public void startApplication(javafx.stage.Stage stage) Description copied from class:FxApplicationThe main entry point for all Tentackle JavaFX applications.This is just a replacement for
Application.start(javafx.stage.Stage)to make sure the client application is really implementing this method.- Specified by:
startApplicationin classFxApplication- Parameters:
stage- the primary stage
-
showApplicationStatus
Description copied from class:FxApplicationShows the initialization status during application startup.- Specified by:
showApplicationStatusin classFxApplication- Parameters:
msg- the message shown in the viewprogress- the progress, 0 to disable, negative if infinite, 1.0 if done
-
createSessionInfo
public org.tentackle.session.SessionInfo createSessionInfo()Creates the session info to be passed to the login controller.- Returns:
- the session info
-
updateSessionInfoFromEnvironment
protected void updateSessionInfoFromEnvironment(org.tentackle.session.SessionInfo sessionInfo) Updates the session with username and password from the process environment.- Parameters:
sessionInfo- the session info to update
-
loadLoginController
Loads the login controller.
Applications may override this method to use specific FXML or CSS files.- Returns:
- the login controller
-