- java.lang.Object
-
- javafx.application.Application
-
- org.tentackle.fx.rdc.app.FxApplication
-
- org.tentackle.fx.rdc.app.LoginApplication
-
public class LoginApplication extends FxApplication
The doLogin FX application.Displays the doLogin view and spawns a doLogin handler.
- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description LoginApplication()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.tentackle.session.SessionInfocreateSessionInfo()Creates the session info to be passed to the doLogin controller.static booleanisAutoLogin(org.tentackle.session.SessionInfo sessionInfo)Returns whether the session should be logged in immediately.
Requiresautologinproperty set in session info properties.protected LoginloadLoginController()Loads the login controller.
Applications may override this method to use specific FXML or CSS files.voidshowApplicationStatus(java.lang.String msg, double progress)Updates the status in the main application scene.voidstartApplication(javafx.stage.Stage stage)The main entry point for all Tentackle JavaFX applications.-
Methods inherited from class org.tentackle.fx.rdc.app.FxApplication
start, stop
-
-
-
-
Method Detail
-
isAutoLogin
public static boolean isAutoLogin(org.tentackle.session.SessionInfo sessionInfo)
Returns whether the session should be logged in immediately.
Requiresautologinproperty set in session info properties.- Parameters:
sessionInfo- the session info- Returns:
- true if autologin
-
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
public void showApplicationStatus(java.lang.String msg, double progress)Description copied from class:FxApplicationUpdates the status in the main application scene.- 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 doLogin controller.- Returns:
- the session info
-
loadLoginController
protected Login loadLoginController()
Loads the login controller.
Applications may override this method to use specific FXML or CSS files.- Returns:
- the login controller
-
-