Class LoginApplication

java.lang.Object
javafx.application.Application
org.tentackle.fx.rdc.app.FxApplication
org.tentackle.fx.rdc.app.LoginApplication

public class LoginApplication extends FxApplication
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.tentackle.session.SessionInfo
    Creates the session info to be passed to the login 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.
    protected Login
    Loads the login controller.
    Applications may override this method to use specific FXML or CSS files.
    void
    showApplicationStatus(String msg, double progress)
    Shows the initialization status during application startup.
    void
    startApplication(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

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • LoginApplication

      public LoginApplication()
  • Method Details

    • isAutoLogin

      public 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.
      Parameters:
      sessionInfo - the session info
      Returns:
      true if autologin
    • startApplication

      public void startApplication(javafx.stage.Stage stage)
      Description copied from class: FxApplication
      The 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:
      startApplication in class FxApplication
      Parameters:
      stage - the primary stage
    • showApplicationStatus

      public void showApplicationStatus(String msg, double progress)
      Description copied from class: FxApplication
      Shows the initialization status during application startup.
      Specified by:
      showApplicationStatus in class FxApplication
      Parameters:
      msg - the message shown in the view
      progress - 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
    • loadLoginController

      protected Login loadLoginController()
      Loads the login controller.
      Applications may override this method to use specific FXML or CSS files.
      Returns:
      the login controller