- java.lang.Object
-
- org.tentackle.fx.AbstractFxController
-
- org.tentackle.fx.rdc.login.Login
-
- All Implemented Interfaces:
org.tentackle.fx.FxController,org.tentackle.validate.ScopeConfigurator
@FxControllerService(binding=NO) public class Login extends org.tentackle.fx.AbstractFxControllerLogin controller.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description Login()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidautoLogin()Logs in automatically.voidconfigure()intgetInactivityTimeout()Gets the inactivity timeout.voidrequestInitialFocus()Sets the initial focus.voidsetInactivityTimeout(int inactivityTimeout)Sets the inactivity timeout.
If there is no keyboard input the application will terminate.voidsetMessage(java.lang.String message)Sets the message field.voidsetProgress(double value)Sets the progress.voidsetSessionInfo(org.tentackle.session.SessionInfo sessionInfo)Sets the session info.
-
-
-
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:
configurein interfaceorg.tentackle.fx.FxController- Overrides:
configurein classorg.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
-
autoLogin
public void autoLogin()
Logs in automatically.
-
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
-
-