public class LoginApplication extends FxApplication
Displays the doLogin view and spawns a doLogin handler.
| Constructor and Description |
|---|
LoginApplication() |
| Modifier and Type | Method and Description |
|---|---|
org.tentackle.session.SessionInfo |
createSessionInfo()
Creates the session info to be passed to the doLogin controller.
|
static boolean |
isAutoLogin(org.tentackle.session.SessionInfo sessionInfo)
Returns whether the session should be logged in immediately.
Requires autologin property set in session info properties. |
void |
showApplicationStatus(String msg,
double progress)
Updates the status in the main application scene.
|
void |
startApplication(javafx.stage.Stage stage)
The main entry point for all Tentackle JavaFX applications.
|
start, stoppublic static boolean isAutoLogin(org.tentackle.session.SessionInfo sessionInfo)
autologin property set in session info properties.sessionInfo - the session infopublic void startApplication(javafx.stage.Stage stage)
throws Exception
FxApplication
This is just a replacement for Application.start(javafx.stage.Stage) to make sure the
client application is really implementing this method.
startApplication in class FxApplicationstage - the primary stageException - if starting failedpublic void showApplicationStatus(String msg, double progress)
FxApplicationshowApplicationStatus in class FxApplicationmsg - the message shown in the viewprogress - the progress, 0 to disable, negative if infinite, 1.0 if donepublic org.tentackle.session.SessionInfo createSessionInfo()
throws org.tentackle.misc.ApplicationException
org.tentackle.misc.ApplicationException - if session info could not be createdTentackle - distributed, domain- and model-driven