Class Login

  • All Implemented Interfaces:
    org.tentackle.fx.FxController, org.tentackle.validate.ScopeConfigurator

    @FxControllerService(binding=NO)
    public class Login
    extends org.tentackle.fx.AbstractFxController
    Login controller.
    Author:
    harald
    • Constructor Summary

      Constructors 
      Constructor Description
      Login()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void autoLogin()
      Logs in automatically.
      void configure()  
      int getInactivityTimeout()
      Gets the inactivity timeout.
      void requestInitialFocus()
      Sets the initial focus.
      void setInactivityTimeout​(int inactivityTimeout)
      Sets the inactivity timeout.
      If there is no keyboard input the application will terminate.
      void setMessage​(java.lang.String message)
      Sets the message field.
      void setProgress​(double value)
      Sets the progress.
      void setSessionInfo​(org.tentackle.session.SessionInfo sessionInfo)
      Sets the session info.
      • Methods inherited from class org.tentackle.fx.AbstractFxController

        createBinder, getBinder, getContainer, getDefaultScopes, getFXMLFields, getFXMLMethods, getStage, getView, setView, validateInjections
      • Methods inherited from class java.lang.Object

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

      • Login

        public Login()
    • Method Detail

      • getInactivityTimeout

        public int getInactivityTimeout()
        Gets the inactivity timeout.
        Returns:
        the timeout in seconds, 0 if disabled (default)
      • setInactivityTimeout

        public void setInactivityTimeout​(int inactivityTimeout)
        Sets the inactivity timeout.
        If there is no keyboard input the application will terminate. This feature is only available for simple login dialogs with the backend configuration disabled.
        Parameters:
        inactivityTimeout - the timeout in seconds, 0 to disable
      • configure

        public void configure()
        Specified by:
        configure in interface org.tentackle.fx.FxController
        Overrides:
        configure in class org.tentackle.fx.AbstractFxController
      • requestInitialFocus

        public void requestInitialFocus()
        Sets the initial focus.
      • setSessionInfo

        public void setSessionInfo​(org.tentackle.session.SessionInfo sessionInfo)
        Sets the session info.
        Parameters:
        sessionInfo - the session info
      • setProgress

        public void setProgress​(double value)
        Sets the progress.
        Parameters:
        value - ≤ 0 to hide progress bar, else up to 1 for 100%
      • setMessage

        public void setMessage​(java.lang.String message)
        Sets the message field.
        Parameters:
        message - the message